Re: How to get the value of a NSNumber contained in an array while debugging ?
Re: How to get the value of a NSNumber contained in an array while debugging ?
- Subject: Re: How to get the value of a NSNumber contained in an array while debugging ?
- From: Jens Alfke <email@hidden>
- Date: Sun, 3 Aug 2008 11:55:50 -0700
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden