• 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: NSWindowController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindowController


  • Subject: Re: NSWindowController
  • From: Graham Cox <email@hidden>
  • Date: Tue, 16 Sep 2008 15:42:44 +1000


On 16 Sep 2008, at 3:34 pm, Chris Idou wrote:

OK, but if you had the window controller in the NIB, then you wouldn't be calling NSWindowController initWithWindowNibName:owner: in the first place. So the mystery of this API remains.


And if the window controller were not in the nib, but were created programatically, yet wasn't the nib's owner?

One thing about Cocoa's design - it rarely forces you to construct things in only one way, but leaves the door open to doing it in a variety of ways. Since initWithWindowNibname:owner: is the more general case of initWithWindowNibName:, it seems to me reasonable to provide it, even if 99% of folk are never going to use it.

Graham
_______________________________________________

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: 
 >Re: NSWindowController (From: Chris Idou <email@hidden>)

  • Prev by Date: Re: NSWindowController
  • Next by Date: Re: Strange property behavior
  • Previous by thread: Re: NSWindowController
  • Next by thread: NSPopupButton Bindings Content Objects is disabled
  • Index(es):
    • Date
    • Thread