• 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: Accessing the bundle of the call-site
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing the bundle of the call-site


  • Subject: Re: Accessing the bundle of the call-site
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 01 Dec 2016 16:36:34 -0800

Introspecting the call stack is possible, if somewhat ugly, using the backtrace and backtrace_symbols functions (on macOS/iOS.) But all you get is a list of PC and stack addresses, or function names. I don’t know how you’d go from those to an NSBundle object. On cursory inspection I didn’t see any NSBundle methods for finding out where in memory the associated code is loaded.

—Jens
_______________________________________________

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


  • Follow-Ups:
    • Re: Accessing the bundle of the call-site
      • From: Rick Aurbach <email@hidden>
References: 
 >Accessing the bundle of the call-site (From: Rick Aurbach <email@hidden>)

  • Prev by Date: Re: Migrating shared library plugins to Cocoa Touch Frameworks
  • Next by Date: strange NSOpenPanel behavior
  • Previous by thread: Accessing the bundle of the call-site
  • Next by thread: Re: Accessing the bundle of the call-site
  • Index(es):
    • Date
    • Thread