• 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: NSTextField Tab Order.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSTextField Tab Order. (From: Robert Tillyard <email@hidden>)
 >Re: NSTextField Tab Order. (From: Ken Thomases <email@hidden>)
 >Re: NSTextField Tab Order. (From: Robert Tillyard <email@hidden>)
 >Re: NSTextField Tab Order. (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: NSTextField Tab Order. (Fixed)
  • Next by Date: [OT] Finite vs Infinite State Machines?
  • Previous by thread: Re: NSTextField Tab Order. (Fixed)
  • Next by thread: Re: NSTextField Tab Order.
  • Index(es):
    • Date
    • Thread