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

BollywooD

macrumors 6502
Original poster
Apr 27, 2005
369
46
Hamburg
probably a simple question, but....
I have an NSArray, which when i check it contents:

Code:
NSLog(@"myArray: %@", myArray);


it looks like this:
Code:
 myArray: (
    "<Info: 0x118a9c740>",
    "<Info: 0x1192f8880>"
)

how can I see what is contained in the Array?

thanks in advance:confused:
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
Every Cocoa object has a built-in description method that returns a string describing that object. By default Cocoa provides a basic description, but you can override that method to return something that is clearer. When you NSLog an array, it spits out the result of this method for every object in the array. So in your Info class, you would override the method and possibly return a combination of the important ivars in that class (using for example NSString's stringWithFormat to generate the string).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.