Re: fetching from NSArray
Re: fetching from NSArray
- Subject: Re: fetching from NSArray
- From: Ben Stiglitz <email@hidden>
- Date: Wed, 3 Oct 2007 17:17:50 -0700
Update: id *buffer = calloc(numberOf_ItemsIWant_ToFetch,sizeof(id));
[myArray
getObjects:buffer range:rangeOfItems]
No reason to use calloc here; since you’re going to be filling in
values, the zero-filling will just be a waste of time. Use
malloc(numberOf_ItemsIWant_ToFetch * sizeof(id)) instead.
-Ben_______________________________________________
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