Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CILinearGradient and 10.5 mess




On Mar 19, 2008, at 12:40 PM, Chris Meyer wrote:
Building against 10.4 doesn't seem to work. And since I'm built against 10.4, I can't check the AppKit version (it will just report the 10.4 version). So what should I do?


If you're referring to checking NSAppKitVersionNumber, I'm pretty sure that you'll see an appropriate value in there when running on 10.5 to let you know that you're on 10.5. That's a global variable coming from the AppKit binary that's loaded at runtime; it's not a compile-time symbol. You should be able to use to determine your system version.

If for some reason that didn't work, you could also use Gestalt with gestaltSystemVersionMajor and Minor.

-eric

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden
References: 
 >CILinearGradient and 10.5 mess (From: "Chris Meyer" <email@hidden>)
 >Re: CILinearGradient and 10.5 mess (From: Jack Small <email@hidden>)
 >Re: CILinearGradient and 10.5 mess (From: "Chris Meyer" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.