• 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: Is NSStringFromRect localized?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is NSStringFromRect localized?


  • Subject: Re: Is NSStringFromRect localized?
  • From: John Stiles <email@hidden>
  • Date: Sat, 12 Mar 2005 18:46:36 -0800

I'm pretty sure NSStringFromRect is used so you can log strings to the console or to a file, not to present numbers to the end user. So I'd assume the implementation is along the lines of
return [NSString stringWithFormat:@"{{%g, %g}, {%g, %g}}", …];


But assuming you want to show this string to an end user anyway, are there any languages in which a comma is no good?
The only cases I can think of that might be a little goofy:
- some European languages use the , as a decimal separator, but if there's a space after the number, I'd guess that it's still considered a regular comma and not a stray decimal point
- Japanese and Chinese have native-style commas (、), but they are also OK with standard commas; particularly considering you're already using the halfwidth numbers, the halfwidth comma is no problem
- maybe Arabic/Hebrew are weird? no idea here.



On Mar 12, 2005, at 5:09 PM, Mark Dawson wrote:

NSStringFromRect says it Returns a string of the form “{{a, b}, {c, d}}”, where a, b, c, and d are the x and y coordinates and the width and height, respectively, of aRect. Are the "," localized?

Thanks!

Mark
_______________________________________________
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

_______________________________________________ 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
References: 
 >Is NSStringFromRect localized? (From: Mark Dawson <email@hidden>)

  • Prev by Date: Re: Crash Log
  • Next by Date: [newbie:] elegant way using multithreading with NSThreads
  • Previous by thread: Is NSStringFromRect localized?
  • Next by thread: [newbie:] elegant way using multithreading with NSThreads
  • Index(es):
    • Date
    • Thread