X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/40172152adfcef7971072e82b8eb226ecb9b127c..3263678eef57c78d7017185eaa2efb9e644c7f29:/ITButton.m?ds=inline diff --git a/ITButton.m b/ITButton.m old mode 100755 new mode 100644 index f5d15b2..276db25 --- a/ITButton.m +++ b/ITButton.m @@ -1,51 +1,40 @@ #import "ITButton.h" #import "ITButtonCell.h" - @implementation ITButton - -/*************************************************************************/ -#pragma mark - -#pragma mark INITIALIZATION METHODS -/*************************************************************************/ - -+ (void)initialize -{ - if ( self == [ITButton class] ) { - [self setCellClass:[ITButtonCell class]]; - } ++ (void)initialize { + if (self == [ITButton class]) { + [self setCellClass:[ITButtonCell class]]; + } } -+ (Class)cellClass -{ - return [ITButtonCell class]; ++ (Class)cellClass { + return [ITButtonCell class]; } - (void)displayIfNeeded { - [self displayIfNeededIgnoringOpacity]; + [super displayIfNeededIgnoringOpacity]; } - (void)displayIfNeededInRect:(NSRect)aRect { - [self displayIfNeededInRectIgnoringOpacity:aRect]; + [super displayIfNeededInRectIgnoringOpacity:aRect]; } - (void)displayRect:(NSRect)aRect { - [self displayRectIgnoringOpacity: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