#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