Re: fetching from NSArray
Re: fetching from NSArray
- Subject: Re: fetching from NSArray
- From: Charles Steinman <email@hidden>
- Date: Tue, 2 Oct 2007 16:17:31 -0700 (PDT)
--- Andy Lee <email@hidden> wrote:
> On Oct 2, 2007, at 5:23 PM, Erfan Aleemullah wrote:
> > [m_storage getObjects:aBuffer range:Range];
>
> Bizarre -- the docs for -getObjects:,
> -getObjects:range:, and
> +arrayWithObjects:count: give no clue that I can
> find about what the
> aBuffer argument is supposed to be. I'm trying to
> imagine why on
> earth it would be an id*.
I'm not at a computer where I can test it, but I
assume it's a standard C array:
id *buffer = calloc(numberOfItemsIWantToFetch,
sizeof(id));
[myArray getObjects:buffer range:rangeOfItems];
Cheers,
chuck
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting
_______________________________________________
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