NSUserDefaultsController and NSTextField
NSUserDefaultsController and NSTextField
- Subject: NSUserDefaultsController and NSTextField
- From: Byron Wright <email@hidden>
- Date: Wed, 6 Jul 2005 11:49:20 -0700
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?
Cheers,
Byron
_______________________________________________
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