Moral to call [self windowDidLoad] ?
Moral to call [self windowDidLoad] ?
- Subject: Moral to call [self windowDidLoad] ?
- From: Leonard Budney <email@hidden>
- Date: Wed, 18 May 2005 15:54:14 -0400
I guess this question is partly philosophical. I have a preferences
panel, and am implementing a "Reset Preferences" button. I've gotten
that working by using an NSUserDefaultsController, but when I call
revertToInitialValues, the panel of course is not updated
accordingly. A simple trick that forces the update is to call [self
windowDidLoad] in the preferencesController object; this forces the
controls to be re-initialized from the default preferences.
The question is, is that moral? Should I be doing this another way?
Thanks!
Len.
_______________________________________________
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