May 2003
Intermediate to advanced
566 pages
27h 29m
English
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.
|
|
@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;
|
Read now
Unlock full access