7a813120ef5dbf5e27b5eb14cbe284df6bb66a2a
[ITKit.git] / ITButton.m
1 #import "ITButton.h"
2 #import "ITButtonCell.h"
3
4
5 @implementation ITButton
6
7
8 /*************************************************************************/
9 #pragma mark -
10 #pragma mark INITIALIZATION METHODS
11 /*************************************************************************/
12
13 + (void)initialize
14 {
15     if ( self == [ITButton class] ) {
16         [self setCellClass:[ITButtonCell class]];
17     }
18 }
19
20 + (Class)cellClass
21 {
22     return [ITButtonCell class];
23 }
24
25 - (void)displayIfNeeded {
26     [super displayIfNeededIgnoringOpacity];
27 }
28
29 - (void)displayIfNeededInRect:(NSRect)aRect {
30     [super displayIfNeededInRectIgnoringOpacity:aRect];
31 }
32
33 - (void)displayRect:(NSRect)aRect {
34     [super displayRectIgnoringOpacity:aRect];
35 }
36
37 - (id)initWithCoder:(NSCoder *)coder
38 {
39     if ( ( self = [super initWithCoder:coder] ) ) {
40         ITButtonCell *cell = [[ITButtonCell alloc] init];
41         [self setCell:cell];
42     }
43     return self;
44 }
45
46 - (BOOL)isOpaque
47 {
48     return NO;
49 }
50
51 @end