• 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: Newbie Q: how print NSArray element from Xcode's debugger?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie Q: how print NSArray element from Xcode's debugger?


  • Subject: Re: Newbie Q: how print NSArray element from Xcode's debugger?
  • From: Eeyore <email@hidden>
  • Date: Thu, 15 Mar 2012 21:43:54 -0700

From source,

NSLog(@"%@", object);

will print out the description of most Cocoa objects, including NSArrays.

You can get the same description from within gdb/lldb using po (for print object),

po object



Aaron

On Mar 15, 2012, at 2:32 PM, Bill Doster <email@hidden> wrote:

> short of adding code to load the value into a vanilla-C type variable...
>
> TIA,
>  Bill
>
> _______________________________________________
>
> 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

References: 
 >Newbie Q: how print NSArray element from Xcode's debugger? (From: Bill Doster <email@hidden>)

  • Prev by Date: Re: How to support larger NSView hierarchy?
  • Next by Date: Xcode 4.3.1 Universal Apps
  • Previous by thread: Newbie Q: how print NSArray element from Xcode's debugger?
  • Next by thread: Xcode 4.3.1 Universal Apps
  • Index(es):
    • Date
    • Thread