Re: Version Nib Loading?
Re: Version Nib Loading?
- Subject: Re: Version Nib Loading?
- From: "I. Savant" <email@hidden>
- Date: Wed, 20 Jun 2007 12:29:53 -0400
On 6/20/07, Jeff Alexander <email@hidden> wrote:
>>But wouldn't it be better if it was possible to provide different nib
versions in your application and have the Cocoa framework load the
most appropriate one depending on the OS release?<<
Do the new Nib as a localized Nib (if you have an internationalized app, and you should :) and register it in one of those region/languages it is unlikely (really unlikely) to be distributed in. You don't actually have to translate it from English of course; but unless a user has that language in which you've registered it as anything like a default they wouldn't load it anyway.
Admittedly, I've only skimmed this thread and may be missing
something, but ... you're given a mechanism to specify the nib *name*
in several places. Why not dynamically return the appropriate nib NAME
and have nibs like, "MyDocument104.nib" and "MyDocument105.nib" or
something similar?
Why rely on obscurity to do the right thing? Some day you may *want*
to localize to that language and then you'll have *two* things to
change ...
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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