Re: NSWindowController versus other NIB Owners
Re: NSWindowController versus other NIB Owners
- Subject: Re: NSWindowController versus other NIB Owners
- From: Shawn Erickson <email@hidden>
- Date: Thu, 15 Feb 2007 18:29:39 -0800
On Feb 15, 2007, at 6:08 PM, Julien Jalon wrote:
Well... as you said it: the nib owner must release the top-level
objects... so does NSWindowController. You can achieve the same
behavior with your own (not NSWindowControllers) nib-owners by using
-loadNibNamed:externalNameTable:withZone: and NSTopLevelObjects key...
Personally I think using -[NSNib
instantiateNibWithOwner:topLevelObjects:] is easier. Why create the
dictionary, etc. when you can more directly get exactly what you
need. Of course it is only available on 10.3 and later.
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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