Removing the use of private CoreGraphics APIs to draw shadows, and replacing with...
[ITKit.git] / ITButton.m
old mode 100755 (executable)
new mode 100644 (file)
index 7a81312..276db25
@@ -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