My object becomes NSCFArray when running on iPhone

Posted by cagreen on Stack Overflow See other posts from Stack Overflow or by cagreen
Published on 2010-05-13T02:09:06Z Indexed on 2010/05/13 2:14 UTC
Read the original article Hit count: 280

Filed under:
|

I'm really scratching my head on this one:

I have an object (MyObject) which I instantiate, and this object has an NSArray member variable.

The following simple code working in the sim:

MyObject *myObj = [[MyObject alloc] init];
NSArray *arr = [myObj myMemberArray];

When I hover over myObj in XCode the tooltip reads "MyObject". Good! But when I debug it on the device (OS 3.1.3) I get: "[NSCFArray myMemberArray]: unrecognized selector sent to instance ... " When I hover over myObj, sure enough it reads "NSCFArray".

Can anyone give me some pointers on where to go next with this? Thanks.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c