• 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
Re: windowDidLoad not getting called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: windowDidLoad not getting called


  • Subject: Re: windowDidLoad not getting called
  • From: Michael Babin <email@hidden>
  • Date: Thu, 19 Mar 2015 13:34:30 -0500

> On Mar 19, 2015, at 1:24 PM, Dave <email@hidden> wrote:
>
> The Window Controller is instantiated with this code:
>
> myWindowController = [[LTWWindowControllerX alloc] initWithWindowKind:@""];
> [myWindowController loadWindow];
>
>
> windowDidLoad doesn’t get called and the “window” property of LTWWindowControllerX doesn’t get set.
>
> I’m wondering why and if I need to something “special” in order to make this work?

From https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindowController_Class/#//apple_ref/occ/instm/NSWindowController/loadWindow

> You should never directly invoke this method. Instead, invoke window <https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindowController_Class/index.html#//apple_ref/occ/instm/NSWindowController/window> so the windowDidLoad <https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindowController_Class/index.html#//apple_ref/occ/instm/NSWindowController/windowDidLoad> and windowWillLoad <https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindowController_Class/index.html#//apple_ref/occ/instm/NSWindowController/windowWillLoad> methods are invoked.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


References: 
 >windowDidLoad not getting called (From: Dave <email@hidden>)

  • Prev by Date: windowDidLoad not getting called
  • Next by Date: Re: windowDidLoad not getting called
  • Previous by thread: windowDidLoad not getting called
  • Next by thread: Re: windowDidLoad not getting called
  • Index(es):
    • Date
    • Thread