Using custom exposed bindings of custom views in Interface Builder?
Using custom exposed bindings of custom views in Interface Builder?
- Subject: Using custom exposed bindings of custom views in Interface Builder?
- From: Frank Illenberger <email@hidden>
- Date: Fri, 21 Nov 2003 19:15:57 +0100
I have subclassed an NSImageView and have given it several new
attributes that I like to be exposed in the bindings panel in Interface
Builder. The documentation says that I have to call "exposeBinding" in
the classes +initialize method. So I am implementing it like this.
@implementation CustomImageView
+ (void)initialize
{
[CustomImageView exposeBinding:@"nameOfCustomAttribute"];
}
...
But this does not seem to work. When selecting the Bindings info panel
in IB, only the original attributes of NSImageView are exposed.
So how do I really tell IB that my attributes are available to be
bound? Without the possibilty of exposing my own attributes the
controller layer really isn't exciting.
Thanks and cheers
Frank Illenberger
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.