• 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
Sorting an NSMutableArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sorting an NSMutableArray


  • Subject: Sorting an NSMutableArray
  • From: Jacob Rhoden <email@hidden>
  • Date: Sat, 20 Dec 2008 23:15:33 +1100

How do you sort an NSMutableArray, when the difference between the two objects is determined by information not contained completely within the objects themselves. ie in Java you can implement a Comparator that takes two objects to compare then. Is this similar in Cocoa?

ie in this case I need to apply a mathematical algorithm using information from each object to determine which one is greater than the other.

Thanks!
Jacob

____________________________
http://jacobrhoden.com
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: Sorting an NSMutableArray
      • From: Rob Rix <email@hidden>
    • Re: Sorting an NSMutableArray
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: Question Regarding the Memory Address of Objects
  • Next by Date: Re: Sorting an NSMutableArray
  • Previous by thread: Re: Using runtime functions to match up object types safely when setting properties
  • Next by thread: Re: Sorting an NSMutableArray
  • Index(es):
    • Date
    • Thread