On Jun 13, 2012, at 4:50 PM, Quincey Morris wrote:

> The other difficulty you're running into is that by design the window is not 
> created immediately when you create a window controller. (You say of your 
> code, above, that it creates a window from a XIB. It doesn't. It only creates 
> a window controller.)
> 
> Instead, the window is created the first time something refers to the window 
> controller's "window" property (e.g. 'self.window' if it's referred to from 
> within the window controller itself). At that point, the NIB is instantiated, 
> the window created, and 'windowDidLoad' is invoked.

Correct with the caveat that there's at least one method, -showWindow:, which 
causes NSWindowController to load the window without you having to explicitly 
use the window property.

Regards,
Ken


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to