Skip navigation.
 
mlCILinearGradient on Leopard
FROM : Chris Meyer
DATE : Thu Mar 20 16:52:26 2008

I read the tech note for 10.5 describing changes to CILinearGradient and how
"for applications compiled on Mac OS X v10.4, these filters continue to
behave on Mac OS X v10.5 as they did previously."
Trying to interpret this imprecise statement, I read it as "for applications
compiled against the 10.4 SDK."

However, I build my application (on 10.5) against the 10.4 SDK and run it on
10.5.2 and it turns out that it just uses the newer (10.5) behavior and my
gradients are backwards. Of course if I run the same app on 10.4, it works
fine.

So my question is: How can I reliably determine whether I need to reverse
the arguments to CILinearGradient?

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?



For reference the Apple technote:
http://developer.apple.com/releasenotes/GraphicsImaging/RN-CoreImage/index.html

Related mailsAuthorDate
mlCILinearGradient on Leopard Chris Meyer Mar 20, 16:52
mlRe: CILinearGradient on Leopard Michael Babin Mar 21, 14:33