Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Duke Leto

macrumors regular
Original poster
Mar 17, 2008
166
0
I have been having problems accessing an object in an NSDictionary I defined.

Is there a way to show what is in an array or dictionary on some kind of debugging console? Or can I see the contents of an IndexPath on a console?
 

lee1210

macrumors 68040
Jan 10, 2005
3,182
3
Dallas, TX
Will
Code:
– allKeys
then using fast enumeration over the resulting array and calling:
Code:
– objectForKey:
on each then printing the key/values not do?

-Lee
 

Duke Leto

macrumors regular
Original poster
Mar 17, 2008
166
0
How do you print them is what I'm asking. I sorta jumped into Obj-C, XCode, and the SDK all at once so I left some knowledge behind.
 

Duke Leto

macrumors regular
Original poster
Mar 17, 2008
166
0
Well I got i think I found the problem, but I have no idea why it is there.

The array in question is in the AppDelegate. My class uses the AppDelegate to read and write from that array. This is very similar to the SimpleDrillDownApp.. However, this array does not like being in the viewWillAppear method. In any case, I may ditch the entire array idea and try to learn SQLite.

Hopefully I will be done by June...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.