• 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: [Xcode-users] dylib Version Introspection?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xcode-users] dylib Version Introspection?


  • Subject: Re: [Xcode-users] dylib Version Introspection?
  • From: Chris Hanson <email@hidden>
  • Date: Wed, 01 Oct 2008 09:07:13 -0700

On Oct 1, 2008, at 8:35 AM, Peter O'Gorman wrote:

Alexander von Below wrote:
Hello,

is there an easy way for a dylib to determine its own "current version",
i.e. the info you get from otool -l ?

You probably know this already, but, see /usr/include/mach-o/ldsyms.h and /usr/include/mach-o/loader.h.

I do not know if there is an easier way.

There is. :)

The header <mach-o/dyld.h> defines NSVersionOfRunTimeLibrary() and NSVersionOfLinkTimeLibrary().

These are documented in the header and in the dyld(3) man page:

http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/dyld.3.html

  -- Chris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: [Xcode-users] dylib Version Introspection?
      • From: Peter O'Gorman <email@hidden>
References: 
 >[Xcode-users] dylib Version Introspection? (From: Alexander von Below <email@hidden>)
 >Re: [Xcode-users] dylib Version Introspection? (From: Peter O'Gorman <email@hidden>)

  • Prev by Date: Re: [Xcode-users] dylib Version Introspection?
  • Next by Date: Re: [Xcode-users] dylib Version Introspection?
  • Previous by thread: Re: [Xcode-users] dylib Version Introspection?
  • Next by thread: Re: [Xcode-users] dylib Version Introspection?
  • Index(es):
    • Date
    • Thread