FROM : Sherm Pendley
DATE : Mon Mar 24 04:24:14 2008
On Sun, Mar 23, 2008 at 9:55 PM, Samvel <<email_removed>> wrote:
> Hi,
>
> I have defined class (say, Download) that uses NSURLConnection to
> download something from internet. My application is Cocoa with UI. I
> want to call:
>
> [Download cancel]
>
> and wait for notification from this class once user quits application.
In your app delegate, implement -applicationShouldTerminate: to call the
above cancel method and return NSTerminateLater. Then, when the cancellation
is done, call [NSApp replyToApplicationTerminate:YES]. Or NO, to cancel the
termination request.
sherm--
DATE : Mon Mar 24 04:24:14 2008
On Sun, Mar 23, 2008 at 9:55 PM, Samvel <<email_removed>> wrote:
> Hi,
>
> I have defined class (say, Download) that uses NSURLConnection to
> download something from internet. My application is Cocoa with UI. I
> want to call:
>
> [Download cancel]
>
> and wait for notification from this class once user quits application.
In your app delegate, implement -applicationShouldTerminate: to call the
above cancel method and return NSTerminateLater. Then, when the cancellation
is done, call [NSApp replyToApplicationTerminate:YES]. Or NO, to cancel the
termination request.
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

