• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CILinearGradient drawing backwards in 10.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CILinearGradient drawing backwards in 10.5


  • Subject: Re: CILinearGradient drawing backwards in 10.5
  • From: Michael Watson <email@hidden>
  • Date: Fri, 2 Nov 2007 00:31:43 -0400

On 02 Nov, 2007, at 00:21, Adam R. Maxwell wrote:


On Nov 1, 2007, at 8:52 PM, Michael Watson wrote:

Since CoreImage is not part of AppKit, a fix to CoreImage wouldn't necessarily change the AppKit version number.

To clarify: I'll check if(floor(NSAppKitVersionNumber >
NSAppKitVersionNumber10_4)) to determine if I'm running on Leopard or Tiger, since I don't think it's likely that Apple will change CoreImage to only reverse gradients when linking on 10.5.



Good point. This will also be better than calling Gestalt() every single time something rerenders with a gradient.


It seems that Apple didn't bother defining NSAppKitVersionNumber10_4, though. Oops. I'll have to #ifndef/#define it myself.

Right now, I'm probably going to use Gestalt() to determine whether or not my method should flip the CIVectors unless anyone has a better idea.

There was an exceedingly long discussion on the merits of Gestalt() vs. other version checking methods on macosx-dev a week or so ago. It's archived, so hopefully that doesn't start up again here :).

I'll go have a look at that, then, and make sure to come back and kick up a dust storm. ;-)


(Or I could simply read it.)



--
m-s
_______________________________________________

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


References: 
 >CILinearGradient drawing backwards in 10.5 (From: Michael Watson <email@hidden>)
 >Re: CILinearGradient drawing backwards in 10.5 (From: Wade Tregaskis <email@hidden>)
 >Re: CILinearGradient drawing backwards in 10.5 (From: Michael Watson <email@hidden>)
 >Re: CILinearGradient drawing backwards in 10.5 (From: "Adam R. Maxwell" <email@hidden>)
 >Re: CILinearGradient drawing backwards in 10.5 (From: Michael Watson <email@hidden>)
 >Re: CILinearGradient drawing backwards in 10.5 (From: "Adam R. Maxwell" <email@hidden>)

  • Prev by Date: highlighting menus in the menu bar on Leopard
  • Next by Date: Core Data app saving zero length files
  • Previous by thread: Re: CILinearGradient drawing backwards in 10.5
  • Next by thread: Re: CILinearGradient drawing backwards in 10.5
  • Index(es):
    • Date
    • Thread