• 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 NSMutableArray by specified key?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sorting NSMutableArray by specified key?


  • Subject: Re: Sorting NSMutableArray by specified key?
  • From: Shawn Erickson <email@hidden>
  • Date: Sun, 30 Jun 2002 11:18:18 -0700

On Sunday, June 30, 2002, at 10:53 AM, Aidas wrote:

Hi,

I would like to sort NSMUtableArray by specified key alphabeticaly. IS it
possible somehow?

How about looking at the docs for NSMutableArray?

Simply implement a function or selector that does comparison that is needed and call one of the following: "sortedUsingFunction:context:" or "sortedUsingSelector:".


If you want to access items by key in a rapid fashion consider using an NSMutableDictionary.

-Shawn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Sorting NSMutableArray by specified key? (From: Aidas <email@hidden>)

  • Prev by Date: Re: Sorting NSMutableArray by specified key?
  • Next by Date: Re: set***Value: Method not working
  • Previous by thread: Re: Sorting NSMutableArray by specified key?
  • Next by thread: Re: Sorting NSMutableArray by specified key?
  • Index(es):
    • Date
    • Thread