• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Interface Builder (How to list an object instance in "Bind to" popup menu?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: James Dessart <email@hidden>
  • Date: Tue, 21 Dec 2004 16:56:24 -0500

On Tue, 21 Dec 2004 16:49:42 -0500, Jeremy French <email@hidden> wrote:
> I would like to bind the value property of a NSSlider instance to a
> property in Dot.

What you need is an NSObjectController to bind to. It takes care of
notification to the slider, etc. In interface builder, drag an
NSObjectController to the nib window, then from that instance, control
drag to the model object.

Choose the contentObject outlet.

Then, in your NSSlider's value binding, choose the NSObjectController
you just created as the object to bind to, the controller key should
be selection, and the model key should be the name of the key you want
to use.

Hope that helps and was clear.

James
 _______________________________________________
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

References: 
 >Interface Builder (How to list an object instance in "Bind to" popup menu?) (From: Jeremy French <email@hidden>)

  • Prev by Date: Re: Getting Pixel Position in an image
  • Next by Date: Re: To Draw fine rectangle
  • Previous by thread: Interface Builder (How to list an object instance in "Bind to" popup menu?)
  • Next by thread: Re: Interface Builder (How to list an object instance in "Bind to" popup menu?)
  • Index(es):
    • Date
    • Thread