/* NSProgressIndicator subclass that hides itself when it's empty (not indeterminate, and a value of 0.0) Original Source: (See copyright notice at ) */ @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