I'm working on my App's preference window... To populate the window's control with the UserDefaults, I use the windowDidLoad method, grab the defaults and populate my fields/controls (I'm doing this in my PreferenceController, which is a subclass of NSWindowController)

I was wondering if there is a similar method I can override when the window is closing so that I can save the user's change in the defaults???

The problem is that, I have 2 text fields in my preference window and... if the user edits those text fields and closes the preference window while the focus is still on a text field (i.e. the user hasn't "tabbed out" of the textfield) I lose the user modification because textControlDidChange did not get fired and therefor my preferences weren't updated...


Any help would be appreciated!

Jean-Nicolas Jolivet
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to