How exactly can you inform Interface Builder that your NSView subclass supports a given binding?
For example, I created a class that had the following:
Code:
+ (void)initialize
{
[self exposeBinding:@"string"];
}
- (void)setString: (NSString *)string
{
_string = string;
}
- (NSString *)string
{
return _string;
}
That should, I think, do everything in order to make the object both KVC compliant and respond to the binding. When I dragged the header to IB, though, I only get "hidden" for bindings for that view.
Has anyone ever used bindings for anything real?