• 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: Localized strings in reverse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localized strings in reverse


  • Subject: Re: Localized strings in reverse
  • From: Ondra Cada <email@hidden>
  • Date: Tue, 2 Jul 2002 20:05:39 +0200

On Tuesday, July 2, 2002, at 07:23 , Carl Jochen Norum wrote:

Is there any way for me to get a localized string's key?

Nope, since there's not one-to-one relation: more different keys can -- and often do -- bind to the same value.

I have a pop-up button whose labels are provided via NSLocalizedString(a,
nil).

Now, based on what the label is on the button, I want to load an NSImage by:

Means you designed the app the wrong way: instead of the label (eh, you meant title, I guess) use the button's tag.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: TIFFRepresentationUsingCompression not working as it should
  • Next by Date: Re: Getting folder icon image
  • Previous by thread: Re: Localized strings in reverse
  • Next by thread: TIFFRepresentationUsingCompression not working as it should
  • Index(es):
    • Date
    • Thread