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

Re: Finding strings


  • Subject: Re: Finding strings
  • From: Gregory Weston <email@hidden>
  • Date: Thu, 17 Feb 2005 06:37:00 -0500

On Feb 17, 2005, at 3:23 AM, Mark Dawson wrote:

When looking at the Sketch example (Developer/Examples/AppKit/), I see
a call to NSLocalizedStringFromTable(@"Set Bounds", @"UndoStrings",
@"Action name for numerically setting bounds.").  I know that
"UndoStrings" is usually a string file, but I don't see such a file
name (no "UndoStrings.strings)".  How do I locate this table?  I tried
using XCode (1.5)'s "Find in project" to look for both "Set Bounds" and
"UndoStrings" and I see all of the calls to the
NSLocalizedStringFromTable API, but no string file.   I see the undo
text, so the call's working.

The call is working because it returns its first argument if the lookup fails. Really it's just a wrapper around a message-send to NSBundle, with the (intentional) side-effect that the genstrings tool will create the strings file if you pass the source through it. Read more about it here: <http://developer.apple.com/documentation/CoreFoundation/Conceptual/ CFBundles/Tasks/working.html#//apple_ref/doc/uid/20001126>


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Finding strings
  • Next by Date: Adding methods to MyDocument?
  • Previous by thread: Re: Finding strings
  • Next by thread: Full screen transparent window
  • Index(es):
    • Date
    • Thread