Re: NSView alphaValue animation on 10.5
Re: NSView alphaValue animation on 10.5
- Subject: Re: NSView alphaValue animation on 10.5
- From: Kyle Sluder <email@hidden>
- Date: Wed, 8 Sep 2010 13:00:38 -0700
On Wed, Sep 8, 2010 at 12:32 PM, Alexander Cohen <email@hidden> wrote:
> I've got a lot of code that depends on 10.6's use of NSView's animator and setAlphaValue for showing and hiding animations. Now, i need to bring this to 10.5. On 10.5, to animate the alphaValue, i learnt that the NSView needs to be backed by a layer. I tried doing that and it created mayhem, so i don't think i can go that route. I could use NSViewAnimation but that would create 2 sets of code and i'd rather just stick with [[view animator] setAlphaValue:val]. Does anyone have any idea how to get something working without having to if/else all these calls?
NSViewAnimation is still supported on 10.6, though it doesn't do
everything the -animator proxy does. So you can port your code to use
NSViewAnimation, remove the use of -animator, and only maintain one
codebase.
--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