Re: NSTextField Tab Order.
Re: NSTextField Tab Order.
- Subject: Re: NSTextField Tab Order.
- From: Ken Thomases <email@hidden>
- Date: Wed, 13 Jun 2012 17:00:04 -0500
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 (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