Re: compiling app for 10.6 and 10.7
Re: compiling app for 10.6 and 10.7
- Subject: Re: compiling app for 10.6 and 10.7
- From: Kyle Sluder <email@hidden>
- Date: Mon, 15 Aug 2011 10:47:58 -0700
On Mon, Aug 15, 2011 at 10:45 AM, David Duncan <email@hidden> wrote:
> In either case, the best general way to determine availability of weak-linked implementations is to test for them directly rather than using a system version check (like gestalt). If your using Clang (which I suspect you are not given your error) you could just use:
>
> "if ([NSPopover class]) { /* do stuff with popovers */ } else { /* do stuff without */ }"
Is it the case that this check will only work on 10.6.8 or newer, and
that one should fall back on NSClassFromString() if supporting an
older version of Snow Leopard?
--Kyle Sluder
_______________________________________________
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