Fixed a crash when Core Image was available.
[ITKit.git] / ITImageView.m
old mode 100755 (executable)
new mode 100644 (file)
index 228e2f4..de903dd
 #import "ITImageView.h"
 #import "ITImageCell.h"
 
-
 @implementation ITImageView
 
-
-+ (void)initialize
-{
-    if ( self == [ITImageView class] ) {
-        [self setCellClass:[ITImageCell class]];
-    }
++ (void)initialize {
+       if (self == [ITImageView class]) {
+               [self setCellClass:[ITImageCell class]];
+       }
 }
 
-+ (Class)cellClass
-{
-    return [ITImageCell class];
++ (Class)cellClass {
+       return [ITImageCell class];
 }
 
-- (id)initWithFrame:(NSRect)rect
-{
-    if ( (self = [super initWithFrame:rect]) ) {
-        [self setScalesSmoothly:YES];
-    }
-    
-    return self;
+- (id)initWithFrame:(NSRect)rect {
+       if ((self = [super initWithFrame:rect])) {
+               [self setScalesSmoothly:YES];
+       }
+       return self;
 }
 
-- (BOOL)scalesSmoothly
-{
-    return [[self cell] scalesSmoothly];
+- (BOOL)scalesSmoothly {
+       return [[self cell] scalesSmoothly];
 }
 
-- (void)setScalesSmoothly:(BOOL)flag
-{
-    [[self cell] setScalesSmoothly:flag];
+- (void)setScalesSmoothly:(BOOL)flag {
+       [[self cell] setScalesSmoothly:flag];
 }
 
-- (BOOL)castsShadow;
-{
-    return [[self cell] castsShadow];
+- (BOOL)castsShadow {
+       return [[self cell] castsShadow];
 }
 
-- (void)setCastsShadow:(BOOL)newSetting;
-{
-    [[self cell] setCastsShadow:newSetting];
+- (void)setCastsShadow:(BOOL)newSetting {
+       [[self cell] setCastsShadow:newSetting];
 }
 
-- (float)shadowElevation;
-{
-    return [[self cell] shadowElevation];
+- (float)shadowElevation {
+       return [[self cell] shadowElevation];
 }
 
-- (void)setShadowElevation:(float)newElevation;
-{
-    [[self cell] setShadowElevation:newElevation];
+- (void)setShadowElevation:(float)newElevation {
+       [[self cell] setShadowElevation:newElevation];
 }
 
-- (float)shadowAzimuth;
-{
-    return [[self cell] shadowAzimuth];
+- (float)shadowAzimuth {
+       return [[self cell] shadowAzimuth];
 }
 
-- (void)setShadowAzimuth:(float)newAzimuth;
-{
-    [[self cell] setShadowAzimuth:newAzimuth];
+- (void)setShadowAzimuth:(float)newAzimuth {
+       [[self cell] setShadowAzimuth:newAzimuth];
 }
 
-- (float)shadowAmbient;
-{
-    return [[self cell] shadowAmbient];
+- (float)shadowAmbient {
+       return [[self cell] shadowAmbient];
 }
 
-- (void)setShadowAmbient:(float)newAmbient;
-{
-    [[self cell] setShadowAmbient:newAmbient];
+- (void)setShadowAmbient:(float)newAmbient {
+       [[self cell] setShadowAmbient:newAmbient];
 }
 
-- (float)shadowHeight;
-{
-    return [[self cell] shadowHeight];
+- (float)shadowHeight {
+       return [[self cell] shadowHeight];
 }
 
-- (void)setShadowHeight:(float)newHeight;
-{
-    [[self cell] setShadowHeight:newHeight];
+- (void)setShadowHeight:(float)newHeight {
+       [[self cell] setShadowHeight:newHeight];
 }
 
-- (float)shadowRadius;
-{
-    return [[self cell] shadowRadius];
+- (float)shadowRadius {
+       return [[self cell] shadowRadius];
 }
 
-- (void)setShadowRadius:(float)newRadius;
-{
-    [[self cell] setShadowRadius:newRadius];
+- (void)setShadowRadius:(float)newRadius {
+       [[self cell] setShadowRadius:newRadius];
 }
 
-- (float)shadowSaturation;
-{
-    return [[self cell] shadowSaturation];
+- (float)shadowSaturation {
+       return [[self cell] shadowSaturation];
 }
 
-- (void)setShadowSaturation:(float)newSaturation;
-{
-    [[self cell] setShadowSaturation:newSaturation];
+- (void)setShadowSaturation:(float)newSaturation {
+       [[self cell] setShadowSaturation:newSaturation];
 }
 
-
-@end
+@end
\ No newline at end of file