4 /*************************************************************************/
6 #pragma mark CELL IMPLEMENTATION
7 /*************************************************************************/
9 @implementation ITLEDCell
12 /*************************************************************************/
14 #pragma mark CELL INITIALIZATION METHODS
15 /*************************************************************************/
18 if ( (self = [super init]) ) {
19 _ledColor = [[NSColor greenColor] retain];
25 /*************************************************************************/
27 #pragma mark CELL INSTANCE METHODS
28 /*************************************************************************/
30 - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView
32 [[NSColor greenColor] set];
33 NSRectFill(cellFrame);
37 /*************************************************************************/
39 #pragma mark CELL DEALLOCATION METHODS
40 /*************************************************************************/
51 /*************************************************************************/
53 #pragma mark CONTROL IMPLEMENTATION
54 /*************************************************************************/
59 /*************************************************************************/
61 #pragma mark CONTROL INITIALIZATION METHODS
62 /*************************************************************************/
65 if (self == [ITLED class]) {
66 [self setCellClass: [ITLEDCell class]];
71 return [ITLEDCell class];
75 /*************************************************************************/
77 #pragma mark CONTROL INSTANCE METHODS
78 /*************************************************************************/
82 return [[self cell] ledColor];
85 - (void)setLEDColor:(NSColor *)newColor
87 [[self cell] setLEDColor:newColor];
91 /*************************************************************************/
93 #pragma mark CONTROL DEALLOCATION METHODS
94 /*************************************************************************/