Re: NSWindowController
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