• 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: 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

  • Follow-Ups:
    • Re: fetching from NSArray
      • From: Andy Lee <email@hidden>
References: 
 >Re: fetching from NSArray (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: fetching from NSArray
  • Next by Date: Hardware copy protection
  • Previous by thread: Re: fetching from NSArray
  • Next by thread: Re: fetching from NSArray
  • Index(es):
    • Date
    • Thread