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: Wim Lewis <email@hidden>
- Date: Tue, 06 Sep 2011 17:45:00 -0700
On 6 Sep 2011, at 4:31 PM, Chris Hanson wrote:
> It may be better to actually check whether your code is running on Snow Leopard rather than make -respondsToSelector: checks.
Another reason to do this is that occasionally the method or class you're interested in actually appeared in an earlier OS revision but was private: in that case they might not have quite the same behavior as their eventually-public versions.
The NSAppKitVersionNumber (and similar) global variables are a quick and easy way to check the runtime version of a framework.
_______________________________________________
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