Re: fetching from NSArray
Re: fetching from NSArray
- Subject: Re: fetching from NSArray
- From: "Erfan Aleemullah" <email@hidden>
- Date: Tue, 2 Oct 2007 18:36:12 -0400
So, I'm storing NSString objects in each array index and then, I need to
access them again so I fetch the objects based on a user range - which can
range up to 1500 cells of the array.the ' &aBuffer ' worked, but only when i
fetched one object - and the program crashed with
Previous frame inner to this frame (gdb could not unwind past this frame)
Previous frame inner to this frame (gdb could not unwind past this frame)
Program received signal: "EXC_BAD_ACCESS".
when i fetched more than one object as defined by the Range variable. Do I
need to allocated memory or size or something to fetch several objects at
one time ?
thanks.
On 10/2/07, Nick Zitzmann <email@hidden> wrote:
>
>
> On Oct 2, 2007, at 3:56 PM, Erfan Aleemullah wrote:
>
> > didn't work.
> >
> > id aBuffer;
> > [m_storage getObjects:aBuffer range:Range];
> > warning:passing argument 1 of 'getObjects:range:' from incompatible
> > pointer type
> >
> > What method should I be using to extract from NSArray ?
>
> You need to pass in a pointer to aBuffer, like this:
>
> [m_storage getObjects:&aBuffer range:Range];
>
> But exactly what are you trying to do? I've never had to use that
> method before.
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>
>
_______________________________________________
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