Chameleon Applications

Chameleon Applications Svn Source Tree

Root/branches/diebuche/ChameleonPrefPane/Sources/CustomTableView.mm

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
16mHighlightColorInFocusView = [[NSColor colorWithCalibratedRed:.38 green:.48 blue:.68 alpha:1] retain];
17mHighlightColorOutOfFocusView = [[NSColor colorWithCalibratedRed:.38 green:.48 blue:.68 alpha:0.5] retain];
18}
19- (id)_highlightColorForCell:(NSCell *)cell
20{
21return [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

Archive Download this file

Revision: 90