• 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 trees & binning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: binary search trees & binning


  • Subject: Re: binary search trees & binning
  • From: "Michael Ash" <email@hidden>
  • Date: Wed, 16 Apr 2008 18:58:43 -0400

On Wed, Apr 16, 2008 at 5:34 PM, John Stiles <email@hidden> wrote:
>
>  Honestly, I can't see value in always coding to CFArray just so I can rip
> out the back end later if I don't like the results.

The value is that 99% of the time you won't need to, saving time and
effort by using a nice built-in class with reasonable performance.

>  If anything, it would make more sense to me to use NSArray for that
> purpose, since I know working with and subclassing NSArray will be easy and
> painless. Core Foundation is just ugly in comparison... :)

I don't really follow. NSArray *is* CFArray. They are just two names
for one entity, so you make a custom CFArray the same way you make a
custom NSArray: subclass NS[Mutable]Array and override the primitive
methods. It's just annoying to talk about NS/CFArray all the time so I
picked one name and used it.

Mike
_______________________________________________

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

References: 
 >binary search trees & binning (From: Boyd Collier <email@hidden>)
 >Re: binary search trees & binning (From: Jean-Daniel Dupas <email@hidden>)
 >Re: binary search trees & binning (From: Jens Alfke <email@hidden>)
 >Re: binary search trees & binning (From: John Stiles <email@hidden>)
 >Re: binary search trees & binning (From: Jean-Daniel Dupas <email@hidden>)
 >Re: binary search trees & binning (From: John Stiles <email@hidden>)
 >Re: binary search trees & binning (From: "Michael Ash" <email@hidden>)
 >Re: binary search trees & binning (From: John Stiles <email@hidden>)

  • Prev by Date: Drawing a 1 pixel-perfect wide bordered NSBezierPath
  • Next by Date: Re: Getting selection of IKImageView?
  • Previous by thread: Re: binary search trees & binning
  • Next by thread: Re: binary search trees & binning
  • Index(es):
    • Date
    • Thread