FROM : Sherm Pendley
DATE : Mon Mar 24 04:42:21 2008
On Sun, Mar 23, 2008 at 11:36 PM, Samvel <<email_removed>> 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--
DATE : Mon Mar 24 04:42:21 2008
On Sun, Mar 23, 2008 at 11:36 PM, Samvel <<email_removed>> 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--
| Related mails | Author | Date |
|---|---|---|
| Samvel | Mar 24, 02:55 | |
| Sherm Pendley | Mar 24, 04:24 | |
| Samvel | Mar 24, 04:36 | |
| Sherm Pendley | Mar 24, 04:42 | |
| Ken Thomases | Mar 24, 21:12 | |
| James Hober | Mar 25, 17:26 | |
| Steve Bird | Mar 25, 17:34 | |
| j o a r | Mar 25, 17:44 | |
| James Hober | Mar 25, 23:19 | |
| j o a r | Mar 25, 23:26 |






Cocoa mail archive

