Re: Conditionally modifying NIBs?
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