Re: several windows in a NIB ?
Re: several windows in a NIB ?
- Subject: Re: several windows in a NIB ?
- From: "I. Savant" <email@hidden>
- Date: Fri, 27 Mar 2009 12:11:55 -0400
On Fri, Mar 27, 2009 at 12:00 PM, Guillaume Laurent
<email@hidden> wrote:
> ... 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
launch time.
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.
--
I.S.
_______________________________________________
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