NSViewAnimation and window alpha value
NSViewAnimation and window alpha value
- Subject: NSViewAnimation and window alpha value
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 28 Sep 2006 08:06:54 -0400
- Thread-topic: NSViewAnimation and window alpha value
I'm using NSViewAnimation to slide a window across the screen smoothly. When
the window is created, it is given a custom alpha (transparency) value of
0.3, but when it moves during the animation the alpha value reverts to the
default. To preserve the window's transparency during the animation, I have
to subclass NSViewAnimation and reset it to 0.3 in every frame in an
override of -setCurrentProcess.
This works, but then the window occasionally flashes with the default alpha
value during animation, which spoils the effect.
Why doesn't the window automatically use its custom alpha value during the
animation? And why does resetting it ins -etCurrentAnimation sometimes
apparently fail?
All the other properties of the window, such as its background color, work
as expected, because I create the window with NSBackingStoreBuffered.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden