Re: Key Value coding with Slider vs TextField
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