My object becomes NSCFArray when running on iPhone
- by cagreen
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.