Re: windowDidLoad not getting called
Re: windowDidLoad not getting called
- Subject: Re: windowDidLoad not getting called
- From: Ken Thomases <email@hidden>
- Date: Thu, 19 Mar 2015 13:34:54 -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];
You shouldn't call -loadWindow. -loadWindow is an override point. See the docs for that method.
To force the window controller to load the window, request its "window" property value or call -showWindow: on it (if you want to show the window).
> 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?
Probably a result of your calling -loadWindow, but also make sure you've connected the window controller's "window" outlet to the window in the NIB.
Regards,
Ken
_______________________________________________
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