Instance Method

start

Starts the receiver.

Declaration

- (void)start;

Discussion

This method asynchronously spawns the new thread and invokes the receiver’s main method on the new thread. The executing property returns YES once the thread starts executing, which may occur after the start method returns.

If you initialized the receiver with a target and selector, the default main method invokes that selector automatically.

If this thread is the first thread detached in the application, this method posts the NSWillBecomeMultiThreadedNotification with object nil to the default notification center.

See Also

Starting a Thread

+ detachNewThreadSelector:toTarget:withObject:

Detaches a new thread and uses the specified selector as the thread entry point.

- main

The main entry point routine for the thread.