Lots more stuff merged in. Added an ITImageView/ITImageCell object to allow smooth...
[ITKit.git] / ITImageView.m
1 #import "ITImageView.h"
2 #import "ITImageCell.h"
3
4
5 @implementation ITImageView
6
7
8 + (void)initialize
9 {
10     if ( self == [ITImageView class] ) {
11         [self setCellClass:[ITImageCell class]];
12     }
13 }
14
15 + (Class)cellClass
16 {
17     return [ITImageCell class];
18 }
19
20 - (id)initWithFrame:(NSRect)rect
21 {
22     if ( (self = [super initWithFrame:rect]) ) {
23         [self setScalesSmoothly:YES];
24     }
25     
26     return self;
27 }
28
29 - (BOOL)scalesSmoothly
30 {
31     return [[self cell] scalesSmoothly];
32 }
33
34 - (void)setScalesSmoothly:(BOOL)flag
35 {
36     [[self cell] setScalesSmoothly:flag];
37 }
38
39
40 @end