Name
NSThread — Mac OS X 10.0
Synopsis
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;
|
Get Cocoa in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.