Re: Creating nib files for multi-nib apps
Re: Creating nib files for multi-nib apps
- Subject: Re: Creating nib files for multi-nib apps
- From: j o a r <email@hidden>
- Date: Mon, 20 Aug 2001 15:50:40 +0200
On Monday, August 20, 2001, at 03:33 , Sam Goldman wrote:
1) in project builder - do I select document based cocoa application,
or is that only if i want to open multiple instances of the same window?
Yes.
2) either way, what type of new window do I select in interface builder
to create a new nib file with and only with what the app needs.
* Create a new nib from the file menu (CMD-N, I belive).
* Drag something from the palette into the empty nib file - ie. perhaps
only a custom view that you want to be able to access later.
* Specify the class of the object loading the nib as the "Files Owner"
* Save the nib, answer yes to have it included into your project.
* Use the nibloading methods of NSBundleAdditions in AppKit to load the
objects from the nib at will in your code.
Regards,
j o a r