Re: NSUserDefaultsController and NSTextField
Re: NSUserDefaultsController and NSTextField
- Subject: Re: NSUserDefaultsController and NSTextField
- From: Scott Anguish <email@hidden>
- Date: Wed, 6 Jul 2005 16:08:54 -0400
On Jul 6, 2005, at 2:49 PM, Byron Wright wrote:
This isn't really related to the defaults controller as such,
however I would like changes to a NSTextfield to be "registered"
when the value in the field changes and not when losing focus or
hitting the enter key.
I have a preferences window and am using NSUserDefaultsController
and bindings to synch my prefs. However, the it seems that unless
the enter key or the NSTexfield loses focus the defaults are not
getting written (bindings are only getting applied during
textDidChange: notifications?) So basically if they enter a value
then hit the "Ok" key the last textfield values they updated won't
get written to the defaults... really annoying. Am I missing
something simple in IB or a method in the NSTextField class
hiearchy? I don't see an easy way to do this without creating a
custom NSTextField class and providing this functionality myself?
yep, missing something simple in IB (as you said)
Continously Updates Value in the value binding for the text
field. enable it, and every time to make a change, it's updated
immediately.
_______________________________________________
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