"Fixed" ITButton... it's not REALLY fixed, as that's impossible, but it
[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     [self displayIfNeededIgnoringOpacity];
27 }
28
29 - (void)displayIfNeededInRect:(NSRect)aRect {
30     [self displayIfNeededInRectIgnoringOpacity:aRect];
31 }
32
33 - (void)displayRect:(NSRect)aRect {
34     [self 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