Yep found that but I want so see the value of my NSNumber in the GUI debgger (in XCode). I want to see my array (it shows something like 10 objects for the summary) and then, if I open the array I want the summary to work for each of the NSNumber inside. I tried to send a small screenshot (22k) but didn't pass. I wanted to show that a NSNumber is well shown but that the same formatter isn't working when the NSNumber is inside the array...

I don't want to print the object in the debugger console but to navigate in the array dynamicaaly in the NSTable above the console in XCode.

Not sure to be really clear :o)

Thanks for any hint.

Phil

Le 3 août 08 à 20:55, Jens Alfke a écrit :


On 3 Aug '08, at 11:36 AM, MAGDELENAT Philippe wrote:

- When I put 10 NSNumber in a NSMutableArray and look at it in the debugger (displaying the content of the array with the little arrow), no way to display the value. The formatter seems ignored or invalid.


Use the gdb command line:

        po myArray

This will call -description on the array and print its contents. It works with any Cococa collection class. If you only want to see one object, do:

        po [myArray objectAtIndex: 0]

—Jens

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to