(Preliminary Documentation) Copyright ã1994 by NeXT Computer, Inc.  All Rights Reserved.

NSThread 

Inherits From:	NSObject 

Conforms To:	NSCoding
NSObject 

Declared In:	foundation/NSThread.h 

Creating an NSThread

+ (NSThread *)currentThread	Returns an object representing the current thread of execution.
+ (void)detachNewThreadSelector:(SEL)aSelector	Creates and starts a new thread, sending an aSelector 
toTarget:(id)aTarget		message to aTarget.  The aSelector message takes the 
withObject:(id)anArgument		argument anArgument and has no return value.

Setting Thread Priority 

- (void)setThreadPriority:(NSThreadPriority)priority	
	Sets the thread priority to NSInteractiveThreadPriority, NSBackgroundThreadPriority, or NSLowThreadPriority.  The thread priority is a hint to the operating system.
- (NSThreadPriority)threadPriority	Returns the priority of the thread.

Querying a Thread 

+ (BOOL)isMultiThreaded	Returns YES if a thread was ever detached.  (Detached threads may have died since).
- (NSMutableDictionary *)threadDictionary	Returns the thread's dictionary, allowing you to add data specific to the receiving thread.  This essentially allows user-defined thread variables.

Terminating a Thread 

+ (void)exit	Terminates the calling thread.  Before exiting that thread, this method posts a notification having the name ªNSThreadExitingº and the terminating NSThread as the object argument of the postNotification:object: message.