• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: several windows in a NIB ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: several windows in a NIB ?


  • Subject: Re: several windows in a NIB ?
  • From: "Sean McBride" <email@hidden>
  • Date: Fri, 27 Mar 2009 12:34:44 -0400
  • Organization: Rogue Research Inc.

On 3/27/09 12:11 PM, I. Savant said:

>> ...  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 ...

3 - The nib and xib file formats to not diff & merge nicely.  So if you
develop in a team, it's nearly impossible for more than one person to
change a nib at the same time (unlike source code).  This is a good
reason to keep nibs small.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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

  • Follow-Ups:
    • Referencing a controller from one NIB to another ?
      • From: Guillaume Laurent <email@hidden>
    • Re: several windows in a NIB ?
      • From: Guillaume Laurent <email@hidden>
    • Re: several windows in a NIB ?
      • From: "I. Savant" <email@hidden>
References: 
 >several windows in a NIB ? (From: Guillaume Laurent <email@hidden>)
 >Re: several windows in a NIB ? (From: "I. Savant" <email@hidden>)

  • Prev by Date: clarification regarding properties
  • Next by Date: Re: clarification regarding properties
  • Previous by thread: Re: several windows in a NIB ?
  • Next by thread: Re: several windows in a NIB ?
  • Index(es):
    • Date
    • Thread