
/*
	NSProgressIndicator subclass that hides itself when it's empty (not indeterminate, and a value of 0.0)
	Original Source: <http://cocoa.karelia.com/AppKit_Classes/NSProgressIndicator_.m>
	(See copyright notice at <http://cocoa.karelia.com>)
*/

@interface HidingProgress : NSProgressIndicator

- (void)drawRect:(NSRect)aRect;

@end

@implementation HidingProgress

- (void)drawRect:(NSRect)aRect
{
	if ([self isIndeterminate] || [self doubleValue] > 0.0)
	{
		[super drawRect:aRect];
	}
}

@end