• 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
Moral to call [self windowDidLoad] ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Moral to call [self windowDidLoad] ?
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Re: NEWBIE: Why use protocols?
  • Next by Date: Re: NEWBIE: Why use protocols?
  • Previous by thread: Re: Spotlight Plugin Woes
  • Next by thread: Re: Moral to call [self windowDidLoad] ?
  • Index(es):
    • Date
    • Thread