• 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: Issue with Core Data Model
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Issue with Core Data Model (From: Amy Gibbs <email@hidden>)
 >Re: Issue with Core Data Model (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Tracking object references
  • Next by Date: Re: Issue with Core Data Model
  • Previous by thread: Re: Issue with Core Data Model
  • Next by thread: Re: Issue with Core Data Model
  • Index(es):
    • Date
    • Thread