Added category on NSMenu which supports indenting items (uses Carbon in
[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 - (id)initWithCoder:(NSCoder *)coder
26 {
27     if ( ( self = [super initWithCoder:coder] ) ) {
28         ITButtonCell *cell = [[ITButtonCell alloc] init];
29         [self setCell:cell];
30     }
31     return self;
32 }
33
34 - (BOOL)isOpaque
35 {
36     return NO;
37 }
38
39 @end