• 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: Preprocessing .nib files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preprocessing .nib files?


  • Subject: Re: Preprocessing .nib files?
  • From: "Bill Peters" <email@hidden>
  • Date: Tue, 14 Feb 2006 23:18:30 -0700

Thanks for the suggestion, Shriniwas. I think I'll try the nibtool first, and use a localization if I need
to fall back. But I'll definitely be using this approach for the translated versions!

Bill


On Wed, 15 Feb 2006 10:39:58 +0530, Shriniwas Kulkarni wrote
> I think you can still use localization to fix it even if both the
> versions are in English. Basically you need to create as many string
> files as the # versions you want to support. Each string file would have
> a name for a specific version. The string keys in all those files would
> be the same (e.g. 'company_name' or 'product_name') but their values
> in each file would be different (e.g. one file may have company_name
> = XYZ and the other file may have company_name = PQR and so on).
>
> Then, for a particular version, you load the string file for that
> version and get the values for those keys and display them. I think this
> would work.
>
> 							Shriniwas
>
> On Tue, 2006-02-14 at 09:08 -0700, xcode-dev wrote:
> > Hi everyone,
> >
> > Suppose I have a product being sold through two distribution channels. For example,
"SuperApp" is
> > going to be sold by "CompanyA" and "EasyApp" is going to be sold through "OrganisationB".
> >
> > I have the product name and the company name in several places in my (Carbon) nib files.
> >
> > Is there any way to preprocess the files, or include placeholder wildcards, that would
automatically
> > substitute the correct text at build time?
> >
> > Or do I have to programmatically grab each string and replace with the correct values at
runtime?
> >
> > Right now I have separate copies of my nib files, one for each vendor. I would like to somehow
combine
> > these into one copy, if possible. Doing so would greatly simplify my life as new features are
added.
> >
> > I've thought about trying the localisation mechanism, but since both versions are in English I was
> > unsure if this would work.
> >
> > Thanks for any advice,
> > Bill
> >
> >
> >  _______________________________________________
> > 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




 _______________________________________________
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

References: 
 >Preprocessing .nib files? (From: "xcode-dev" <email@hidden>)
 >Re: Preprocessing .nib files? (From: Shriniwas Kulkarni <email@hidden>)

  • Prev by Date: Re: Preprocessing .nib files?
  • Next by Date: debugging on Intel macs
  • Previous by thread: Re: Preprocessing .nib files?
  • Next by thread: Xcode / cvs authentication problems fixed...
  • Index(es):
    • Date
    • Thread