Line | |
---|
1 | // |
---|
2 | // ICeCoffEENonHighlightingButtonCell.m |
---|
3 | // ICeCoffEE APE |
---|
4 | // |
---|
5 | // Created by Nicholas Riley on Fri Jun 06 2003. |
---|
6 | // Copyright (c) 2003 Nicholas Riley. All rights reserved. |
---|
7 | // |
---|
8 | |
---|
9 | #import "ICeCoffEENonHighlightingButtonCell.h" |
---|
10 | |
---|
11 | |
---|
12 | @implementation ICeCoffEENonHighlightingButtonCell |
---|
13 | |
---|
14 | - (NSColor *)highlightColorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView |
---|
15 | { |
---|
16 | return [NSColor whiteColor]; |
---|
17 | } |
---|
18 | |
---|
19 | - (NSCellStateValue)nextState; |
---|
20 | { |
---|
21 | switch ([self intValue]) { |
---|
22 | case NSOnState: |
---|
23 | case NSMixedState: |
---|
24 | return NSOffState; |
---|
25 | case NSOffState: |
---|
26 | return NSOnState; |
---|
27 | } |
---|
28 | return NSMixedState; |
---|
29 | } |
---|
30 | |
---|
31 | @end |
---|
Note: See
TracBrowser
for help on using the repository browser.