From 51c90223fce6bcd50152100a5a1905c1e41daf8e Mon Sep 17 00:00:00 2001 From: Klaas Pieter Annema Date: Wed, 26 May 2010 16:44:55 +0200 Subject: [PATCH] exposed enabled binding on CPControl and made sure CPControl's bindings are only exposed once --- AppKit/CPControl.j | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AppKit/CPControl.j b/AppKit/CPControl.j index b43925a60..b273c5040 100644 --- a/AppKit/CPControl.j +++ b/AppKit/CPControl.j @@ -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