#import "ITButton.h" #import "ITButtonCell.h" @implementation ITButton + (void)initialize { if (self == [ITButton class]) { [self setCellClass:[ITButtonCell class]]; } } + (Class)cellClass { return [ITButtonCell class]; } - (void)displayIfNeeded { [super displayIfNeededIgnoringOpacity]; } - (void)displayIfNeededInRect:(NSRect)aRect { [super displayIfNeededInRectIgnoringOpacity:aRect]; } - (void)displayRect:(NSRect)aRect { [super displayRectIgnoringOpacity:aRect]; } - (id)initWithCoder:(NSCoder *)coder { if ((self = [super initWithCoder:coder])) { ITButtonCell *cell = [[ITButtonCell alloc] init]; [self setCell:cell]; } return self; } - (BOOL)isOpaque { return NO; } @end