• 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: Getting Localized System Strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Localized System Strings


  • Subject: Re: Getting Localized System Strings
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 1 Apr 2008 14:55:16 +0200


Le 1 avr. 08 à 14:47, Gerriet M. Denkmann a écrit :

On 1 Apr 2008, at 12:25, Jean-Daniel Dupas wrote:

The strings you are looking for are in the AppKit ressources, but I don't think there are part of the API, the keys can change at anytime and you cannot rely on the files names. (in Leopard, the Undo.strings file contains a "Paste Font" key, but it's not garantee that it remain like that)


Anyway, you can probably copy this Undo.strings file in your application.

Thanks a lot. I decided to use it like this:
NSBundle *appBundle = [ NSBundle bundleWithIdentifier: @"com.apple.AppKit" ];
NSString *localSetFont = [ appBundle localizedStringForKey: @"Set Font" value: nil table: @"Undo"];
Seems to work fine.


Kind regards,

Gerriet.

As I said, it works, but it's not futur-proof, so I would not use it in a shipping product.



_______________________________________________

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


References: 
 >Getting Localized System Strings (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Getting Localized System Strings (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Getting Localized System Strings (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: NSView out of memory problem
  • Next by Date: Re: Custom interface
  • Previous by thread: Re: Getting Localized System Strings
  • Next by thread: Re: Getting Localized System Strings
  • Index(es):
    • Date
    • Thread