Re: Strategy for varying nib contents for two product variants?
Re: Strategy for varying nib contents for two product variants?
- Subject: Re: Strategy for varying nib contents for two product variants?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 21 Feb 2008 09:53:37 +0100
Le 21 févr. 08 à 09:36, Ulf Dunkel a écrit :
However, I have a number of NIBs with many references to the
product name. Is there a good way to put a "variable" into NIB
content, like to substitute for one word that appears in many
different controls (button titles, text fields, etc.)?
Did you already try this:
Use English.lproj, French.lproj, German.lproj etc. for MyApplication.
Create and use en.lproj, fr.lproj, de.lproj etc. for MyApp PRO.
Create Run Scripts which remove either the English.lproj etc. stuff
or the en.lproj etc. stuff, depending on which configuration you use.
Add new configurations in your project (beside Development,
Development Native, Release etc.) for the MyApp PRO stuff.
Just my 2 cents, unproved. ;-)
HTH, Ulf Dunkel
It's maybe possible to create a solution based on template nib. You
create nib with for exemple {MY_PRODUCT} instead of your product name
in all localizable strings, and then you use ibtool to extract the
strings, you replace the text, and you create your final nib by
reinjecting the new strings.
ibtool --generate-stringsfile file.strings my-template.nib
# use whatever you want to replace {MY_PRODUCT} by your product name
in file.strings
ibtool --strings-file file.strings --write my-result.nib my-template.nib
I didn't try so the commands maybe not be exact. If you are using
Xcode 3 and compiled nib, you will have to perform this step before
copying resources in your bundle because a compiled nib cannot be
edited usign ibtool.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden