• 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: fetching from NSArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: fetching from NSArray (From: Charles Steinman <email@hidden>)
 >Re: fetching from NSArray (From: Andy Lee <email@hidden>)
 >Re: fetching from NSArray (From: Ricky Sharp <email@hidden>)
 >Re: fetching from NSArray (From: Sherm Pendley <email@hidden>)
 >Re: fetching from NSArray (From: "Erfan Aleemullah" <email@hidden>)

  • Prev by Date: Re: Hardware copy protection
  • Next by Date: Re: Bound table not getting sorted when cell content is modified
  • Previous by thread: Re: fetching from NSArray
  • Next by thread: Hardware copy protection
  • Index(es):
    • Date
    • Thread