• 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: Sorting filenames the way the Finder does?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sorting filenames the way the Finder does?


  • Subject: Re: Sorting filenames the way the Finder does?
  • From: Deborah Goldsmith <email@hidden>
  • Date: Thu, 14 Jun 2007 12:25:22 -0700

On Jun 7, 2007, at 3:45 PM, Scott Anguish wrote:
Lists being sorted for end users should *always* use
localizedCompare: or localizedCaseInsensitiveCompare:. Only use
compare: if the end user will not see the ordering.

I should clarify what I meant. While compare: is not correct for end- user sorting, it's perfectly OK to use compare:options:range:locale:. localizedCompare: and localizedCaseInsensitiveCompare: are just convenience functions for compare:options:range:locale:. The key is to do a localized sort, which compare: does not do.


Sorry for any confusion...

Deborah Goldsmith
Internationalization, Unicode liaison
Apple Inc.
email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Re: Sorting filenames the way the Finder does? (From: James Bucanek <email@hidden>)
 >Re: Sorting filenames the way the Finder does? (From: Scott Anguish <email@hidden>)

  • Prev by Date: Clarifying when NSTextField/Cell triggers target/action...
  • Next by Date: Re: Core Data Beginner Question
  • Previous by thread: Re: Sorting filenames the way the Finder does?
  • Next by thread: Re: Sorting filenames the way the Finder does?
  • Index(es):
    • Date
    • Thread