Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?
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