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: "email@hidden" <email@hidden>
- Date: Tue, 06 Sep 2011 22:34:32 +0100
On 6 Sep 2011, at 22:11, Kyle Sluder wrote:
> On Tue, Sep 6, 2011 at 1:55 PM, email@hidden
>
>> My understanding is that the SDK frameworks are there to provide feedback during the linking that is performed as part of the build.
>> When the app is actually run the dynamic linker links to the specified versions (A, B, C, etc) of the system frameworks as specified in the binary (see otool -l).
>
> Framework versions haven't been used since the OpenStep days.
Really?
It is still documented:
http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFrameworks/Concepts/VersionInformation.html#//apple_ref/doc/uid/20002255-BCIECADD
I presumed versioning was still actively used in system frameworks.
>
>> The binary knows nothing about the SDK (correct me on this if I am wrong).
>
> You are wrong. ;-)
So it would seem!
>
>> 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?
Regards
Jonathan Mitchell
Developer
Mugginsoft LLP
http://www.mugginsoft.com_______________________________________________
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