• 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: The best way to call Cocoa methods not implemented in previous versions of the SDK?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?


  • Subject: Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?
  • From: Greg Parker <email@hidden>
  • Date: Tue, 6 Sep 2011 14:41:24 -0700

On Sep 6, 2011, at 2:34 PM, email@hidden wrote:
> On 6 Sep 2011, at 22:11, Kyle Sluder wrote:
>> On Tue, Sep 6, 2011 at 1:55 PM, email@hidden
>>> To me this means that a framework will make its judgement of whether to modify its internal behaviour based on introspecting the application linkage.
>>> This behaviour though seems to be rare and implementation details scare on the ground.
>>
>> The system frameworks often check the SDK version the application
>> they're running within was linked against.
>>
> Can otool extract the SDK version?

The LC_LOAD_DYLIB output from `otool -lv` shows the library version number as seen at link time. That's usually the value that is checked at runtime. To get an SDK number, you'd have to know which library version was present in each SDK.


--
Greg Parker     email@hidden     Runtime Wrangler


_______________________________________________

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: The best way to call Cocoa methods not implemented in previous versions of the SDK?
      • From: "email@hidden" <email@hidden>
References: 
 >The best way to call Cocoa methods not implemented in previous versions of the SDK? (From: Oleg Krupnov <email@hidden>)
 >Re: The best way to call Cocoa methods not implemented in previous versions of the SDK? (From: Quincey Morris <email@hidden>)
 >Re: The best way to call Cocoa methods not implemented in previous versions of the SDK? (From: Jens Alfke <email@hidden>)
 >Re: The best way to call Cocoa methods not implemented in previous versions of the SDK? (From: "email@hidden" <email@hidden>)
 >Re: The best way to call Cocoa methods not implemented in previous versions of the SDK? (From: Kyle Sluder <email@hidden>)
 >Re: The best way to call Cocoa methods not implemented in previous versions of the SDK? (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?
  • Next by Date: Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?
  • Previous by thread: Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?
  • Next by thread: Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?
  • Index(es):
    • Date
    • Thread