• 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: Copyright Info from InfoPlist.strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Copyright Info from InfoPlist.strings
      • From: Douglas Davidson <email@hidden>
References: 
 >Copyright Info from InfoPlist.strings (From: Mitchell Livingston <email@hidden>)
 >Re: Copyright Info from InfoPlist.strings (From: Julio Cesar Silva dos Santos <email@hidden>)

  • Prev by Date: Re: Printing contents of the active Desktop window
  • Next by Date: Re: Problem with dataWithContentsOfURL of NSData
  • Previous by thread: Re: Copyright Info from InfoPlist.strings
  • Next by thread: Re: Copyright Info from InfoPlist.strings
  • Index(es):
    • Date
    • Thread