Re: Copyright Info from InfoPlist.strings
Re: Copyright Info from InfoPlist.strings
- Subject: Re: Copyright Info from InfoPlist.strings
- From: Uli Kusterer <email@hidden>
- Date: Thu, 16 Aug 2007 10:19:05 +0200
On 16.08.2007, at 02:52, Julio Cesar Silva dos Santos wrote:
You can load the strings using localizedStringForKey:value:table
method of NSBundle.
NSString * hrc = [[NSBundle mainBundle]
localizedStringForKey:@"NSHumanReadableCopyright" value:@"Error,
copyright info not found." table:@"Info"];
The second parameter is a string that will be presented if the key
is missing or the file is not available.
NSBundle's -localizedInfoDictionary or -
objectForInfoDictionaryKey ? That should be "even more correct", as
it should catch the info even if Apple decides to move it. I heard on
at least one occasion Apple have embedded the Info.plist in the
application executable itself (not in the file package).
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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