• 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
NSViewAnimation and window alpha value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSViewAnimation and window alpha value
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: sluggish NSSlider with vsynced opengl
  • Next by Date: Pixel Size
  • Previous by thread: Changing Default Viewer, UTIs, and File Extensions
  • Next by thread: Re: NSViewAnimation and window alpha value
  • Index(es):
    • Date
    • Thread