Lots more stuff merged in. Added an ITImageView/ITImageCell object to allow smooth...
[ITKit.git] / ITImageView.m
diff --git a/ITImageView.m b/ITImageView.m
new file mode 100755 (executable)
index 0000000..899cae6
--- /dev/null
@@ -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