• 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
Re: About nswindow animation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: About nswindow animation?
      • From: PGM <email@hidden>
References: 
 >About nswindow animation? (From: Silicon <email@hidden>)

  • Prev by Date: Re: how to use the "small icon menu" in the main menu bar?
  • Next by Date: different initialization method?
  • Previous by thread: Re: About nswindow animation?
  • Next by thread: Re: About nswindow animation?
  • Index(es):
    • Date
    • Thread