• 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
windowDidLoad NOT being called?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

windowDidLoad NOT being called?


  • Subject: windowDidLoad NOT being called?
  • From: Mark Dawson <email@hidden>
  • Date: Mon, 25 Apr 2005 16:19:08 -0700

I'm creating my first preference window, and am missing some step. My preference window's "windowDidLoad" isn't being called, and its "window" variable is nil. I've connected my "fileOwner" to the "window" outlet of the "window" icon. My nib file is called "Preferences.nib". PreferencesWindowController's -init method IS being called, just not its -windowDidLoad. I've titled the window "Preferences".

- (id)sender
{
if (!mPrefWindowController) {
// Create a new preferences window controller if it does not already exist.
mPrefWindowController = [[PreferencesWindowController alloc] initWithWindowNibName:@"Preferences"];
}
<5> [mPrefWindowController updatePreferences];
[mPrefWindowController showWindow:sender];
}

Breaking at line <5> shows that the controller has been created, but NOT its window (and all of the outlets in that window are still nil).

What am I missing?
 _______________________________________________
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: windowDidLoad NOT being called?
      • From: Thomas Davie <email@hidden>
  • Prev by Date: Re: subversion support in XCode?
  • Next by Date: Re: NSPopupButton and nextKeyView
  • Previous by thread: Re: setFont
  • Next by thread: Re: windowDidLoad NOT being called?
  • Index(es):
    • Date
    • Thread