X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/f2b0d96803579e18b734728916b484828d895e16..3e6ffde0979aded206bb6741114253dc0615cc9c:/ITButton.m diff --git a/ITButton.m b/ITButton.m new file mode 100755 index 0000000..7a7a242 --- /dev/null +++ b/ITButton.m @@ -0,0 +1,39 @@ +#import "ITButton.h" +#import "ITButtonCell.h" + + +@implementation ITButton + + +/*************************************************************************/ +#pragma mark - +#pragma mark INITIALIZATION METHODS +/*************************************************************************/ + ++ (void)initialize +{ + if ( self == [ITButton class] ) { + [self setCellClass:[ITButtonCell class]]; + } +} + ++ (Class)cellClass +{ + return [ITButtonCell class]; +} + +- (id)initWithCoder:(NSCoder *)coder +{ + if ( ( self = [super initWithCoder:coder] ) ) { + ITButtonCell *cell = [[ITButtonCell alloc] init]; + [self setCell:cell]; + } + return self; +} + +- (BOOL)isOpaque +{ + return NO; +} + +@end