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

Re: Smart sort


  • Subject: Re: Smart sort
  • From: Andreas Mayer <email@hidden>
  • Date: Mon, 27 Nov 2006 16:59:46 +0100


Am 27.11.2006 um 16:12 Uhr schrieb Martin:

Is there a simple way to do this ?

Yes. See NSString's -compare:options:... methods and this option:

----
NSNumericSearch
Numbers within strings are compared using numeric value, that is, Foo2.txt < Foo7.txt < Foo25.txt.


This option only applies to compare methods, not find.

Available in Mac OS X version 10.2 and later.

----



Andreas
_______________________________________________

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: 
 >Smart sort (From: Martin <email@hidden>)

  • Prev by Date: Re: Smart sort
  • Next by Date: Re: Deployment target set to 10.4, still launches on 10.3.9
  • Previous by thread: Re: Smart sort
  • Next by thread: Should I do loops in reverse order ?
  • Index(es):
    • Date
    • Thread