exposed enabled binding on CPControl and made sure CPControl's bindings are only exposed once

This commit is contained in:
Klaas Pieter Annema
2010-05-26 16:44:55 +02:00
parent 3cb3bfc008
commit 51c90223fc
+5 -1
View File
@@ -133,7 +133,11 @@ var CPControlBlackColor = [CPColor blackColor];
+ (void)initialize
{
[self exposeBinding:"value"];
if (self === [CPControl class])
{
[self exposeBinding:@"value"];
[self exposeBinding:@"enabled"];
}
}
- (id)initWithFrame:(CGRect)aFrame