On Jan 11, 2013, at 8:12 AM, Alex Zavatone <z...@mac.com> wrote:

> Back as of Xcode 4.2, many classes would not implicitly support po in the 
> debugger unless you wrote your own description method to return the 
> properties you wanted to expose.

What leads you to this conclusion?

Many, but not all, classes in Cocoa and Cocoa Touch implement -description to 
do more than print their address and class name. However, that's not something 
that changes with Xcode version - it's part of the frameworks themselves. And 
"po" in the debugger just sends -description and prints the result.

In the command line debugger, "print *someObject" will print someObject's ivars 
just as if you were dereferencing a struct*, as long as its real type (eg not 
"id") is known or has been cast to.

  -- Chris

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to