ThreadWorker is a class that aims to make it easy to offload a task to another thread and notify your application when you've completed the task.
Creating Multithreaded applications with Objective-C in Mac OS X's Cocoa framework is easier than raw C code, but there are still some difficulties that ThreadWorker will help you overcome.
What's New in This Release: [ read full changelog ]
· Added ability to mark thread as cancelled.
· Changed the behavior when "longTask" takes a second argument. Instead of passing a proxy to the primary thread's "self" it passes a references to the ThreadWorker. The recommended way to pass information from the primary, or originating, thread is to use an NSDictionary to pass in the Things You'll Need. See the Controller.m example.
· Changed thread's termination behavior so that as soon as your "longTask:" is finished, the thread will exit. This means if you left anything on the NSRunLoop (or more likely an NSURL did it without your knowledge), it will get dumped.