How to cancel a NSURL action
How to cancel a NSURL action
- Subject: How to cancel a NSURL action
- From: Marc Laffitte <email@hidden>
- Date: Wed, 31 Oct 2001 20:28:40 +0100
Hi!
I am using the loadResourceDataNotifyingClient message of NSURL.
This works fine but I don't know how to cancel this action.
If the user is connected via PPP and modem to the internet and has
automatic connection activated, and if for any reason the connection
does not work, the systems displays alert boxes asking for password or
whatever is needed. The user can cancel. But it look like that the
request remains pending and the system redisplays those alert boxes
again and again. Until I quit my application.
If the user is downloading a big file, or if for whatever reason the
downloading process takes time, it would be also nice for him to have
the possibility to cancel. What I do is to use a helper app for downlod
which I quit if the user cancels... Not very elegant!
Thanks for any ideas,
Marc