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