#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