• 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: Binary search on sorted NSArray in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binary search on sorted NSArray in Cocoa?


  • Subject: Re: Binary search on sorted NSArray in Cocoa?
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Tue, 06 Jan 2009 06:59:22 -0800


On Jan 6, 2009, at 8:16 AM, Karan, Cem (Civ, ARL/CISD) wrote:

My question is, does NSArray already have a binary search method defined on it in a category somewhere? If it does, I'd rather use that.

It's not a category, but take a look at CFArrayBSearchValues, which works just fine thanks to toll-free bridging.


--
Adam


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Binary search on sorted NSArray in Cocoa?
      • From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
References: 
 >Binary search on sorted NSArray in Cocoa? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)

  • Prev by Date: Strange behavior of observeValueForKeyPath:ofObject:change:context:
  • Next by Date: RE: Table sort image question
  • Previous by thread: Binary search on sorted NSArray in Cocoa?
  • Next by thread: RE: Binary search on sorted NSArray in Cocoa?
  • Index(es):
    • Date
    • Thread