Re: Implementing Full Screen for 10.7 but app should also run on 10.6
Re: Implementing Full Screen for 10.7 but app should also run on 10.6
- Subject: Re: Implementing Full Screen for 10.7 but app should also run on 10.6
- From: Charles Srstka <email@hidden>
- Date: Mon, 14 Nov 2011 15:54:13 -0600
On Nov 14, 2011, at 11:16 AM, Kyle Sluder wrote:
> On Nov 14, 2011, at 7:30 AM, Gideon King <email@hidden> wrote:
>
>> if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6) {
>>
>
> This comparison is incorrect. The AppKit version number almost always gets bumped on an OS point release. This comparison will succeed on 10.6.1 and higher.
>
> Does Apple not ship symbols for the current AppKit version in the SDK—in other words, is there an NSAppKitVersionNumber10_7 in the 10.7 SDK?
It does not. The 10.7 SDK only includes up to NSAppKitVersionNumber10_6. The only way to check this using NSAppKitVersionNumber is to use floor, as he did (or to use another method, such as Gestalt).
Charles_______________________________________________
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