• 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: Manual binding questions.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Manual binding questions.


  • Subject: Re: Manual binding questions.
  • From: mmalcolm crawford <email@hidden>
  • Date: Sun, 23 Jan 2005 15:31:20 -0800


On Jan 23, 2005, at 1:11 PM, Jiva DeVoe wrote:

[_myView bind:@"sliderVal" toObject:_slider withKeyPath:@"doubleValue" options:nil];
I get the initial value this is set to when it starts up, but when I subsequently slide the slider up and down, it does NOT update my view.
What am I doing wrong?


Binding two views to each other. You should bind _myView's value to the model property.
(For the technical issue: the slider does not post KVO change notifications. See:
<http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaBindings/Concepts/HowDoBindingsWork.html>


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
  • Follow-Ups:
    • Re: Manual binding questions.
      • From: Jiva DeVoe <email@hidden>
References: 
 >Manual binding questions. (From: Jiva DeVoe <email@hidden>)

  • Prev by Date: Re: Managing multiple nibs
  • Next by Date: Re: Multiple Types of Documents in a Document Based App
  • Previous by thread: Re: Manual binding questions.
  • Next by thread: Re: Manual binding questions.
  • Index(es):
    • Date
    • Thread