• 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
localizedCompare: what's the locale?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

localizedCompare: what's the locale?


  • Subject: localizedCompare: what's the locale?
  • From: Nicko van Someren <email@hidden>
  • Date: Wed, 6 Oct 2004 17:35:34 +0100

The documentation for NSString's localizedCompare: says "Performs a localized compare between the receiver and string. See Also: – compare:options:range:locale:". Presumably it is simply calling compare:options:range:locale: with some predefined values for options, an empty range and a "local" locale. My question is where does that locale come from? I want to do a localised search with the NSNumericSearch option switched on, so I need to pass in the same locale information.

Thanks in advance,

Nicko

_______________________________________________
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
  • Follow-Ups:
    • Re: localizedCompare: what's the locale?
      • From: Chuck Soper <email@hidden>
  • Prev by Date: Re: getting points in circular bezierpath
  • Next by Date: Re: Java VM version query
  • Previous by thread: Mouse input on/and scaled images
  • Next by thread: Re: localizedCompare: what's the locale?
  • Index(es):
    • Date
    • Thread