• 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: KVO on NSSlider not observing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KVO on NSSlider not observing


  • Subject: Re: KVO on NSSlider not observing
  • From: "Kyle Sluder" <email@hidden>
  • Date: Fri, 12 Dec 2008 08:48:12 -0500

On Fri, Dec 12, 2008 at 8:20 AM, Aaron Wallis <email@hidden> wrote:
> Usually I'd just use bindings in IB, but this is the first time i've had to
> build the interface through code.

When you set up bindings in IB, you bind the view to the controller.
So, you should do the same from code.  Send
-bind:toObject:withKeyPath:options: to your slider.  This is what IB
is doing for you when you lay out bindings graphically.

HTH,
--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >KVO on NSSlider not observing (From: Aaron Wallis <email@hidden>)
 >Re: KVO on NSSlider not observing (From: Graham Cox <email@hidden>)
 >Re: KVO on NSSlider not observing (From: Aaron Wallis <email@hidden>)

  • Prev by Date: Re: Text layout responsibility
  • Next by Date: Programmatically constructing list of variable arguments?
  • Previous by thread: Re: KVO on NSSlider not observing
  • Next by thread: Re: KVO on NSSlider not observing
  • Index(es):
    • Date
    • Thread