• 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: Key Value coding with Slider vs TextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Key Value coding with Slider vs TextField


  • Subject: Re: Key Value coding with Slider vs TextField
  • From: Trygve Inda <email@hidden>
  • Date: Sun, 16 Jul 2006 10:19:49 +0000
  • Thread-topic: Key Value coding with Slider vs TextField

>
> On Jul 16, 2006, at 2:21 AM, Trygve Inda wrote:
>
>> The slider gets set correctly, but the textField is not updated.
>> What do I
>> need to do to force this - I assumed that if the binding was set up,
>> then
>> the call to setIntValue on the slider would trip the text field into
>> updating as well.
>
> This is a FAQ.
>
> <http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Conce
> pts/Troubleshooting.html

Ok, so... "This is the expected behavior. Instead you should change the
model object using a key-value-observing compliant manner."

Then how do I set the value of a slider in a KVO savvy way?

[mySlider setValue:someValue forKey:???]

My slider does not have an instance variable in my app, but is tied to a
text field with "takeIntValueFrom" which is really a target/action.

Thanks,

Trygve


 _______________________________________________
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: Key Value coding with Slider vs TextField
      • From: mmalc crawford <email@hidden>
References: 
 >Re: Key Value coding with Slider vs TextField (From: mmalc crawford <email@hidden>)

  • Prev by Date: Re: DVDPlayback
  • Next by Date: Re: NSPipe / NSTask ls -> Array
  • Previous by thread: Re: Key Value coding with Slider vs TextField
  • Next by thread: Re: Key Value coding with Slider vs TextField
  • Index(es):
    • Date
    • Thread