Re: About nswindow animation?
Re: About nswindow animation?
- Subject: Re: About nswindow animation?
- From: Murat Konar <email@hidden>
- Date: Fri, 09 Feb 2007 18:43:56 -0800
On Feb 10, 2007, at 1:15 AM, Silicon wrote:
I am concerned about the animation effect implemented using nswindow.
For example, user click the red round button at the left up corner,
then I want to make my window fade out.
But using the NSViewAnimation Class, I can only capture the
NSWindow content view, that is,the content view in a window, no the
window self.
What you need to do is override your window's close method.
In your override of the close method, setup an NSViewAnimation object
with your window as the target (documented yes, but also non-
intuitive for a class called NSViewAnimation) and
NSViewAnimationFadeOutEffect as the effect.
When your animation has finished, call [super close] to actually
close your window.
_murat
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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