
/*
	NSButton subclass that hides itself when it's disabled
	Original Source: <http://cocoa.karelia.com/AppKit_Classes/NSButton_subclass_t.m>
	(See copyright notice at <http://cocoa.karelia.com>)
*/

@interface HidingButton : NSButton

- (void)drawRect:(NSRect)aRect;

@end

@implementation HidingButton

- (void)drawRect:(NSRect)aRect
{
	if ([self isEnabled])
	{
		[super drawRect:aRect];
	}
}

@end