I am working on an app that invoves using NSThread to distrubite the workload to a second thread, but I cannot close the thread. It would like to have the app cleaning up it's resources whenever possible, but whatever I try does not work. To start a thread, I use:
property downloadThread : class "downloadThread"
set threadTwo to (NSThread's detachNewThreadSelector_toTarget_withObject_("test:", downloadThread,"Download File"))to start a thread, but it won't close. I've tried using these in the second thread's script:
property NSThread : class "NSThread"
NSThread's close_()
NSThread's exit_()
NSThread's exit_(NSThread's currentThread)They all return an error saying that an unrecognized selector was sent to the class. I would appreciate any help on this..