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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to