X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/3e6ffde0979aded206bb6741114253dc0615cc9c..HEAD:/ITButton.m diff --git a/ITButton.m b/ITButton.m old mode 100755 new mode 100644 index 7a7a242..276db25 --- a/ITButton.m +++ b/ITButton.m @@ -1,39 +1,40 @@ #import "ITButton.h" #import "ITButtonCell.h" - @implementation ITButton ++ (void)initialize { + if (self == [ITButton class]) { + [self setCellClass:[ITButtonCell class]]; + } +} -/*************************************************************************/ -#pragma mark - -#pragma mark INITIALIZATION METHODS -/*************************************************************************/ ++ (Class)cellClass { + return [ITButtonCell class]; +} + +- (void)displayIfNeeded { + [super displayIfNeededIgnoringOpacity]; +} -+ (void)initialize -{ - if ( self == [ITButton class] ) { - [self setCellClass:[ITButtonCell class]]; - } +- (void)displayIfNeededInRect:(NSRect)aRect { + [super displayIfNeededInRectIgnoringOpacity:aRect]; } -+ (Class)cellClass -{ - return [ITButtonCell class]; +- (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; +- (id)initWithCoder:(NSCoder *)coder { + if ((self = [super initWithCoder:coder])) { + ITButtonCell *cell = [[ITButtonCell alloc] init]; + [self setCell:cell]; + } + return self; } -- (BOOL)isOpaque -{ - return NO; +- (BOOL)isOpaque { + return NO; } -@end +@end \ No newline at end of file