• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Stopping an NSThread (or something similar)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: DVDPlayback
  • Next by Date: NSConnection/NSSocketPort per-subthread Mach port leak
  • Previous by thread: Re: Stopping an NSThread (or something similar)
  • Next by thread: Re: Stopping an NSThread (or something similar)
  • Index(es):
    • Date
    • Thread