I’m currently working with someone else code, so i have a question is there a way to quickly tell what objects i have in NSArray.
In code i have for example:
Someclassobj.arr
And i know there is an array as a property in Someclassobj and of course i can see the definition of it, but still dont know what objects are inside. Could be NSString, NSDictionary,ObjectDefinedByUSer… How to quicly tell?
There is a method to check classes? If i execute:
id someUnknownObj = [Someclassobj.arr objectAtIndex:0];
How to check it? (i know isKindOfClass isMemberOfClass methods, but its doesn’t work for me).
Of course there is doesn’t have to be code method, could be something like option+click.
Will do the trick:
If you want to avoid this kind of stuff:
1) Put a breakpoint as soon as the
NSArrayhas the objects.2) Go to the Console on Xcode and do:
A great article about using the console in Xcode here.