Re: Stopping an NSThread (or something similar)
Re: Stopping an NSThread (or something similar)
- Subject: Re: Stopping an NSThread (or something similar)
- From: Michael Becker <email@hidden>
- Date: Fri, 14 Jul 2006 18:41:54 +0200
Am 14.07.2006 um 04:27 schrieb Chris Suter:
For your particular problem, you need to use the curl_multi API.
I actually solved the problem by using my progress callback function
with the curl_easy API. If I make it return a non-zero value, the
upload will stop.
Out of interest, why couldn't you use NSURLConnection. I've not
tried it, but couldn't you hook into NSInputStream to monitor how
much data has been loaded? I'd have thought this might work
although only on 10.4.
Well, the "10.4-only" would be the reason why I cannot do that. I
haven't yet looked into NSInputStream, but honestly, I am quite happy
with my curl-solution. Furthermore, I still think that Apple should
provide callback (i.e. delegate) functions for uploading. They do for
downloading, after all.
Regards,
Michael
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden