transmission/macosx/DisableTextField.m

16 lines
302 B
Objective-C

#import "DisableTextField.h"
@implementation DisableTextField
- (void) setEnabled: (BOOL) enabled
{
[super setEnabled: enabled];
if (!enabled)
[self setTextColor: [NSColor secondarySelectedControlColor]];
else
[self setTextColor: [NSColor controlTextColor]];
}
@end