X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/fc20fb5991f57d35d0483a29d8a4c8f7775e7969..f3f68377429d64947ab0b32f925eb3632bd7e94b:/ITImageView.m diff --git a/ITImageView.m b/ITImageView.m new file mode 100755 index 0000000..899cae6 --- /dev/null +++ b/ITImageView.m @@ -0,0 +1,40 @@ +#import "ITImageView.h" +#import "ITImageCell.h" + + +@implementation ITImageView + + ++ (void)initialize +{ + if ( self == [ITImageView class] ) { + [self setCellClass:[ITImageCell class]]; + } +} + ++ (Class)cellClass +{ + return [ITImageCell class]; +} + +- (id)initWithFrame:(NSRect)rect +{ + if ( (self = [super initWithFrame:rect]) ) { + [self setScalesSmoothly:YES]; + } + + return self; +} + +- (BOOL)scalesSmoothly +{ + return [[self cell] scalesSmoothly]; +} + +- (void)setScalesSmoothly:(BOOL)flag +{ + [[self cell] setScalesSmoothly:flag]; +} + + +@end