Main thread not getting stopped in cocoa

152 Views Asked by At

I am developing a desktop-based application in xcode4 that uploads files to ftp, flickr etc. I use multi threading while uploading. I need to cancel the entire uploads going on. Multithreading is done using "performselectorOnMainthread". So I need to cancel each of these runloops from the main thread. I even tried "CFRunLoopStop(CFRunLoopGetMain());" to cancel the main thread itself, but I amnot getting any result.

0

There are 0 best solutions below