Subject: Re: several windows in a NIB ?
On Fri, Mar 27, 2009 at 12:00 PM, Guillaume Laurent
> ... it suddenly occurs to me that nothing prevents me from having several
> top-level windows
> in a single NIB, i.e. the Track Editor Panel may just as well be defined in
> the same NIB as
> the main window, and that simplifies things a lot.
> A question however : is this regarded as good practice ? And can I still
> easily show or hide the panel window if it's not defined in its own NIB ?
There is nothing wrong with this, IMO. The only two considerations:
1 - If you have a "heavy" interface that does not all need to be
loaded (ie, some windows may not be used during an entire session),
you'd want to separate things out into their own nibs to shorten
2 - In a larger, more complicated project, organization and working
within IB can become a problem with a monolithic nib. Especially if
the nib becomes corrupted at some point ...
Other than the above two considerations, your approach should be fine.
Cocoa-dev mailing list (Cocoa-dev@xxxxxxxxxxxxxxx)
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 maillists@xxxxxxxxx