Re: Interface Builder (How to list an object instance in "Bind to" popup menu?)
Re: Interface Builder (How to list an object instance in "Bind to" popup menu?)
- Subject: Re: Interface Builder (How to list an object instance in "Bind to" popup menu?)
- From: mmalcolm crawford <email@hidden>
- Date: Tue, 21 Dec 2004 14:04:46 -0800
On Dec 21, 2004, at 1:49 PM, Jeremy French wrote:
How do I get a model class to appear in the "Bind to" popup menu? This
is the popup menu labeled "Bind to", found In the bindings info panel
in Interface Builder.
You can currently only bind to File's Owner, Shared User Defaults, and
NS*Controller instances. Other bindings you must establish
programmatically.
I would like to bind the value property of a NSSlider instance to a
property in Dot.
If Dot is your model class, then you should almost certainly add an
NSObjectController to your interface and bind to that instead. They
you can set the 'content' of the controller to the Dot instance. You
will also, then, avoid having to establish the binding
programmatically.
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden