How to get the value of a NSNumber contained in an array while debugging ?
How to get the value of a NSNumber contained in an array while debugging ?
- Subject: How to get the value of a NSNumber contained in an array while debugging ?
- From: MAGDELENAT Philippe <email@hidden>
- Date: Sun, 3 Aug 2008 20:36:27 +0200
Hi,
I am wondering how to see the value of a NSNumber in XCode debugger
using a formatter when the said NSNumber is in a NSMutableArray ?
To sum it up:
- When I look at a NSNumber with the following formatter "{(int)[$VAR
intValue]}" everything works fine and the debugger shows in the
summary column the expected int value (112 actually :o).
- 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.
Probably a dumb question (brand new in Cocoa/XCode) but I found no
answer to it neither on the net nor in apple debugger documentation.
Either I make a (stupid) mistake or I missed something in the
formatter regarding interaction with an array. Not sure I shouldn't
post to XCode dev list but I try here first. Feel free to redirect me.
Yours,
Phil
_______________________________________________
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