• 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: "Kyle Sluder" <email@hidden>
  • Date: Sun, 3 Aug 2008 15:01:11 -0400

On Sun, Aug 3, 2008 at 2:58 PM, Daniel Richman
<email@hidden> wrote:
> If your array is called myArray, type
>
> po myArray
>
> in the debugger, and it will print the value of all objects in the array.

More specifically, it will send -description to all the objects in the
array, and print the result.  Useful even if you have an array of your
own objects and need to inspect them in the debugger; override
-description and return a meaningful string.

Just be careful; by default NSData prints out everything inside of it.

--Kyle Sluder
_______________________________________________

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: "Sean McBride" <email@hidden>
References: 
 >How to get the value of a NSNumber contained in an array while debugging ? (From: MAGDELENAT Philippe <email@hidden>)
 >Re: How to get the value of a NSNumber contained in an array while debugging ? (From: Daniel Richman <email@hidden>)

  • Prev by Date: Re: How to get the value of a NSNumber contained in an array while debugging ?
  • Next by Date: Want to save the content of a NSView with CALayer embedded.
  • 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