Re: binary search trees & binning
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