BSD

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • NSViewAnimation and window destination alpha

    1 answers - 267 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    I have a window that's being faded in via NSViewAnimation, but I want
    its destination opacity to be less than fully opaque. (E.g., start at
    0, fade up to 0.8.)
    Is NSViewAnimation itself capable of this, or do I need to subclass
    it or NSAnimation?
  • No.1 | | 541 bytes | |

    You could use an animation delegate to return an adjusted value based
    on the progress scale of 0.0-1.0.
    - (float)animation:(NSAnimation*)animation valueForProgress:
    (NSAnimationProgress)progress;

    Mar 1, 2007, at 10:50 AM, Michael Watson wrote:

    I have a window that's being faded in via NSViewAnimation, but I
    want its destination opacity to be less than fully opaque. (E.g.,
    start at 0, fade up to 0.8.)

    Is NSViewAnimation itself capable of this, or do I need to subclass
    it or NSAnimation?
    --

Re: NSViewAnimation and window destination alpha


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 8 =
QUESTION ON "BSD"

EMSDN.COM