Re: Issue with Core Data Model
Re: Issue with Core Data Model
- Subject: Re: Issue with Core Data Model
- From: Chris Hanson <email@hidden>
- Date: Sat, 12 Jan 2013 13:57:31 -0800
On Jan 11, 2013, at 8:12 AM, Alex Zavatone <email@hidden> 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 (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