1 | //␊ |
2 | // CustomTableView.mm␊ |
3 | // ChameleonPrefPane␊ |
4 | //␊ |
5 | // Created by Rekursor on 1/25/10.␊ |
6 | //␊ |
7 | ␊ |
8 | #import "CustomTableView.h"␊ |
9 | ␊ |
10 | ␊ |
11 | @implementation CustomTableView␊ |
12 | ␊ |
13 | - (void)awakeFromNib␊ |
14 | {␊ |
15 | ␉// highlight colors␊ |
16 | ␉mHighlightColorInFocusView = [[NSColor colorWithCalibratedRed:.38 green:.48 blue:.68 alpha:1] retain];␊ |
17 | ␉mHighlightColorOutOfFocusView = [[NSColor colorWithCalibratedRed:.38 green:.48 blue:.68 alpha:0.5] retain];␊ |
18 | }␊ |
19 | - (id)_highlightColorForCell:(NSCell *)cell␊ |
20 | {␊ |
21 | ␉return [self isEnabled] ? mHighlightColorInFocusView : mHighlightColorOutOfFocusView;␊ |
22 | ␉␊ |
23 | }␊ |
24 | ␊ |
25 | - (void)dealloc␊ |
26 | {␊ |
27 | ␉// release the colors␊ |
28 | ␉[mHighlightColorInFocusView release];␊ |
29 | ␉[mHighlightColorOutOfFocusView release];␊ |
30 | ␉␊ |
31 | ␉[super dealloc];␊ |
32 | }␊ |
33 | @end␊ |
34 | |