Re: applicationWillTerminate and animations
Re: applicationWillTerminate and animations
- Subject: Re: applicationWillTerminate and animations
- From: "Sherm Pendley" <email@hidden>
- Date: Thu, 27 Mar 2008 10:29:03 -0400
On Thu, Mar 27, 2008 at 10:14 AM, Mitchell Livingston <email@hidden>
wrote:
> Hello,
>
> When my program quits, I would like to fade out all the windows using
> the animator. When I put this code in the applicationWillTerminate:
> method, however, it appears to be called but doesn't animate. How
> would I got about to get this to work?
I'd try putting it in applicationShouldTerminate:, and return
NSTerminateLater to give the app time to run the fade-out animation. Then,
when the animation completes, you can call [NSApp
replyToApplicationShouldTerminate:YES].
sherm--
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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