NSThread

NSThread Mac OS X 10.0

NSThread provides functionality to run processes as separate threads of execution. NSThread takes a method selector that will be run in its own thread. Threads share the memory space of their parent processes, unlike processes executed by NSTask instances.

figs/cocn_13109.gif

@interface NSThread : NSObject
 // Convenience Constructors
   + (double)threadPriority;
 // Class Methods
   + (NSThread *)currentThread;
   + (void)detachNewThreadSelector:(SEL)selector toTarget:(id)target withObject:(id)argument;
   + (void)exit;
   + (BOOL)isMultiThreaded;
   + (BOOL)setThreadPriority:(double)priority;
   + (void)sleepUntilDate:(NSDate *)date;
 // Instance Methods
   - (NSMutableDictionary *)threadDictionary;



    Part II: API Quick Reference
    Chapter 13. Foundation Classes