• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get the value of a NSNumber contained in an array while debugging ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Daniel Richman <email@hidden>
  • Date: Sun, 03 Aug 2008 11:58:11 -0700

If your array is called myArray, type

po myArray

in the debugger, and it will print the value of all objects in the array.

Daniel


MAGDELENAT Philippe wrote:
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
_______________________________________________

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


  • Follow-Ups:
    • Re: How to get the value of a NSNumber contained in an array while debugging ?
      • From: "Kyle Sluder" <email@hidden>
References: 
 >How to get the value of a NSNumber contained in an array while debugging ? (From: MAGDELENAT Philippe <email@hidden>)

  • Prev by Date: Re: How to get the value of a NSNumber contained in an array while debugging ?
  • Next by Date: Re: How to get the value of a NSNumber contained in an array while debugging ?
  • Previous by thread: Re: How to get the value of a NSNumber contained in an array while debugging ?
  • Next by thread: Re: How to get the value of a NSNumber contained in an array while debugging ?
  • Index(es):
    • Date
    • Thread