X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/7f548f500563594e127d71504e73b27af58574fc..bbb399e28121ac71152cef5fc21e106c4b941cbc:/ITLED.m diff --git a/ITLED.m b/ITLED.m deleted file mode 100755 index 3ceb5ac..0000000 --- a/ITLED.m +++ /dev/null @@ -1,101 +0,0 @@ -#import "ITLED.h" - - -/*************************************************************************/ -#pragma mark - -#pragma mark CELL IMPLEMENTATION -/*************************************************************************/ - -@implementation ITLEDCell - - -/*************************************************************************/ -#pragma mark - -#pragma mark CELL INITIALIZATION METHODS -/*************************************************************************/ - -- (id)init { - if ( (self = [super init]) ) { - _ledColor = [[NSColor greenColor] retain]; - } - return self; -} - - -/*************************************************************************/ -#pragma mark - -#pragma mark CELL INSTANCE METHODS -/*************************************************************************/ - -- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView -{ - [[NSColor greenColor] set]; - NSRectFill(cellFrame); -} - - -/*************************************************************************/ -#pragma mark - -#pragma mark CELL DEALLOCATION METHODS -/*************************************************************************/ - -- (void)dealloc { - [super dealloc]; - [_ledColor release]; -} - - -@end - - -/*************************************************************************/ -#pragma mark - -#pragma mark CONTROL IMPLEMENTATION -/*************************************************************************/ - -@implementation ITLED - - -/*************************************************************************/ -#pragma mark - -#pragma mark CONTROL INITIALIZATION METHODS -/*************************************************************************/ - -+ (void)initialize { - if (self == [ITLED class]) { - [self setCellClass: [ITLEDCell class]]; - } -} - -+ (Class)cellClass { - return [ITLEDCell class]; -} - - -/*************************************************************************/ -#pragma mark - -#pragma mark CONTROL INSTANCE METHODS -/*************************************************************************/ - -- (NSColor *)ledColor -{ - return [[self cell] ledColor]; -} - -- (void)setLEDColor:(NSColor *)newColor -{ - [[self cell] setLEDColor:newColor]; -} - - -/*************************************************************************/ -#pragma mark - -#pragma mark CONTROL DEALLOCATION METHODS -/*************************************************************************/ - -- (void)dealloc { - [super dealloc]; -} - - -@end