This should make the filter buttons work a bit better.

This commit is contained in:
Mitchell Livingston 2006-07-15 18:42:22 +00:00
parent 090d309803
commit 7a53b3b54d
1 changed files with 8 additions and 0 deletions

View File

@ -58,6 +58,9 @@
[[NSColor colorWithCalibratedWhite: 0.0 alpha: 0.6] set];
[rect fill];
[fButtonDown unlockFocus];
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(resetBounds:)
name: NSViewBoundsDidChangeNotification object: nil];
}
return self;
}
@ -155,4 +158,9 @@
[self setImage: fEnabled ? fButtonIn : fButtonNormal];
}
- (void) resetBounds: (NSNotification *) notification
{
[self addTrackingRect: [self bounds] owner: self userData: nil assumeInside: NO];
}
@end