• 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: Conditionally modifying NIBs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conditionally modifying NIBs?


  • Subject: Re: Conditionally modifying NIBs?
  • From: "David Wilson" <email@hidden>
  • Date: Wed, 14 May 2008 14:11:52 -0400

On Wed, May 14, 2008 at 1:37 PM, Mike Fischer <email@hidden> wrote:
>
> Details:
> Let's say I have a project which includes a nib N1 which builds a target T1.
> Now I want to add a new target T2 which builds a variant of of T1 that adds
> some elements to nib N1 and removes some others (N2).

Given that you don't want to maintain two separate nibs, I would boil
down the overlap between N1 and N2 into a new nib, N0, that contains
only those elements that exist in both. Depending on the extent of the
non-overlapping pieces, they can either be created programmatically
after N0 is loaded depending on which target is running, or nibs N1
and N2 can contain the remaining pieces such that they can be loaded
in and spliced into N0 (adding new views to tab views, etc etc. If you
design the nib and interface properly to segregate the common and
target-specific functionality, this should be fairly straightforward.

--
- David T. Wilson
email@hidden
_______________________________________________

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:
    • Re: Conditionally modifying NIBs?
      • From: Mike Fischer <email@hidden>
References: 
 >Conditionally modifying NIBs? (From: Mike Fischer <email@hidden>)

  • Prev by Date: Re: Launching Cocoa Application externally
  • Next by Date: Re: Efficient XML loading [continuation of NSString from mapped NSData thread]
  • Previous by thread: Conditionally modifying NIBs?
  • Next by thread: Re: Conditionally modifying NIBs?
  • Index(es):
    • Date
    • Thread