Re: NSViewAnimation and window alpha value
Re: NSViewAnimation and window alpha value
- Subject: Re: NSViewAnimation and window alpha value
- From: Mike Abdullah <email@hidden>
- Date: Thu, 28 Sep 2006 17:19:03 +0100
Couldn't you just use setFrame:display:animate: instead?
Mike.
On 28 Sep 2006, at 13:06, Bill Cheeseman wrote:
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:
40gmail.com
This email sent to email@hidden
_______________________________________________
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