Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stopping an NSThread (or something similar)



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Stopping an NSThread (or something similar) (From: Michael Becker <email@hidden>)
 >Re: Stopping an NSThread (or something similar) (From: Chris Suter <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.