• 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: applicationWillTerminate and animations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >applicationWillTerminate and animations (From: Mitchell Livingston <email@hidden>)

  • Prev by Date: Re: Writing a preference pane that configures hotkeys?
  • Next by Date: NSMapTable with pointer keys ?
  • Previous by thread: applicationWillTerminate and animations
  • Next by thread: Re: applicationWillTerminate and animations
  • Index(es):
    • Date
    • Thread