w00t. ITButton and ITButtonCell. Also, ITTextField is now correctly implemented...
[ITKit.git] / ITButton.m
diff --git a/ITButton.m b/ITButton.m
new file mode 100755 (executable)
index 0000000..7a7a242
--- /dev/null
@@ -0,0 +1,39 @@
+#import "ITButton.h"
+#import "ITButtonCell.h"
+
+
+@implementation ITButton
+
+
+/*************************************************************************/
+#pragma mark -
+#pragma mark INITIALIZATION METHODS
+/*************************************************************************/
+
++ (void)initialize
+{
+    if ( self == [ITButton class] ) {
+        [self setCellClass:[ITButtonCell class]];
+    }
+}
+
++ (Class)cellClass
+{
+    return [ITButtonCell class];
+}
+
+- (id)initWithCoder:(NSCoder *)coder
+{
+    if ( ( self = [super initWithCoder:coder] ) ) {
+        ITButtonCell *cell = [[ITButtonCell alloc] init];
+        [self setCell:cell];
+    }
+    return self;
+}
+
+- (BOOL)isOpaque
+{
+    return NO;
+}
+
+@end