Re: Using custom exposed bindings of custom views in Interface Builder?
Re: Using custom exposed bindings of custom views in Interface Builder?
- Subject: Re: Using custom exposed bindings of custom views in Interface Builder?
- From: Scott Anguish <email@hidden>
- Date: Fri, 21 Nov 2003 15:38:53 -0500
Did you create a new palette with for the CustomImageView in Interface
Builder?
If the custom object isn't in the runtime when IB goes looking for
bindings, there is no way to find it.
On Nov 21, 2003, at 1:15 PM, Frank Illenberger wrote:
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.
_______________________________________________
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.