• 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
NSUserDefaultsController and NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSUserDefaultsController and NSTextField
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: QTKit quickie
  • Next by Date: turning on the 'Open Recent' attribute for an NSMenuItem
  • Previous by thread: Re: Reading system preferences?
  • Next by thread: Re: NSUserDefaultsController and NSTextField
  • Index(es):
    • Date
    • Thread