• 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: "Hamish Allan" <email@hidden>
  • Date: Wed, 14 May 2008 23:07:33 +0100

On Wed, May 14, 2008 at 6:37 PM, Mike Fischer <email@hidden> wrote:

> I remember in the very dim past (when MacApp was still a modern framework
> ;-) that I had text based resource files (.r) to build the 'View' resources
> (rough analog to nibs) which included preprocessor macros to control which
> parts/features where active. These would be compiled into .rsrc files using
> the current build settings. This mechanism was very flexible when it came to
> building different variants of an application. (I admit though that the
> source was hard to read and edit due to all of the conditional stuff.)
>
> Is there any way to achieve someting similar in our modern Cocoa/Xcode/IB
> world? How do others handle this problem?

You could use XIB files instead of NIB files, and write a script to
process them as a build step before they are compiled...

Hamish
_______________________________________________

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: Capture screenshot
  • Next by Date: Re: Can I use NSString classes SYNCHRONOUSLY?
  • Previous by thread: Re: Conditionally modifying NIBs?
  • Next by thread: Re: Conditionally modifying NIBs?
  • Index(es):
    • Date
    • Thread