/* NSButton subclass that hides itself when it's disabled Original Source: (See copyright notice at ) */ @interface HidingButton : NSButton - (void)drawRect:(NSRect)aRect; @end @implementation HidingButton - (void)drawRect:(NSRect)aRect { if ([self isEnabled]) { [super drawRect:aRect]; } } @end