• 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: Logging out the IMP description
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Logging out the IMP description


  • Subject: Re: Logging out the IMP description
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 01 Nov 2012 16:04:22 -0500

On Nov 1, 2012, at 3:44 PM, Sebastien Boisvert wrote:

> I have an IMP for a method - in Xcode debugging window, I can select the var, and make it display a description; I get something like this in the console:
>
> (IMP) ImpVarName = 0x00000001012a1130 (FrameWorkName`-[ClassName methodName] at ClassName.m:125)
>
> This is perfect, but I can't figure out how to get this logged out (through NSLog or otherwise) through code. Any ideas?

There's no description inherent to the IMP.  As far as the running app is concerned, an IMP is just an address.  The debugger is looking up the symbol associated with the address in the debugging information.  This will typically not be available to the release build of an app in the wild.

You can try to use the dladdr() function or invoke the "atos" tool, but be sure to test that in your intended deployment environment -- that is, off of your development machine -- to get representative behavior.

Regards,
Ken


_______________________________________________

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: 
 >Logging out the IMP description (From: Sebastien Boisvert <email@hidden>)

  • Prev by Date: Re: App rejection due to app-sandboxing invalid entitlement
  • Next by Date: Re: App rejection due to app-sandboxing invalid entitlement
  • Previous by thread: Logging out the IMP description
  • Next by thread: View-based NSTableView strange scrolling behavior.
  • Index(es):
    • Date
    • Thread