• 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: How to delay application quit?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to delay application quit?


  • Subject: Re: How to delay application quit?
  • From: "Sherm Pendley" <email@hidden>
  • Date: Sun, 23 Mar 2008 23:42:21 -0400

On Sun, Mar 23, 2008 at 11:36 PM, Samvel <email@hidden> wrote:

> That looks exactly as the functionality I was looking for.
> Thus, the whole task should be divided into next steps:
>
> 1. Set delegate for current *NSApp*.
> 2. In above delegate implement *-applicationShouldTerminate:* method and
> return *NSTerminateLater*.
> 3. Say, this delegate (or some other object) received Notification saying
> that application is fine to quit now (after all necessary steps performed)
> then call *[NSApp replyToApplicationTerminate:YES]* and Application will
> proceed with quitting.
>
> Is that right?
>

Exactly.


> Sorry, but I am a freshman in Mac programming :).
>

Welcome aboard!

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: 
 >How to delay application quit? (From: Samvel <email@hidden>)
 >Re: How to delay application quit? (From: "Sherm Pendley" <email@hidden>)
 >Re: How to delay application quit? (From: Samvel <email@hidden>)

  • Prev by Date: Re: How to delay application quit?
  • Next by Date: NSScrollView with layer-backed subview - sync problems on resize
  • Previous by thread: Re: How to delay application quit?
  • Next by thread: Re: How to delay application quit?
  • Index(es):
    • Date
    • Thread