X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/bd40b798b6a46cfecdfb128e2992bba254148911..7a218424c6a92eb4979564a7260f862edd46052d:/ITButton.m diff --git a/ITButton.m b/ITButton.m old mode 100755 new mode 100644 index 7a81312..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 { - [super displayIfNeededIgnoringOpacity]; + [super displayIfNeededIgnoringOpacity]; } - (void)displayIfNeededInRect:(NSRect)aRect { - [super displayIfNeededInRectIgnoringOpacity:aRect]; + [super displayIfNeededInRectIgnoringOpacity:aRect]; } - (void)displayRect:(NSRect)aRect { - [super 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