MonobjcMonobjc Documented Class Library
DetachNewThreadSelectorToTargetWithObject Method (aSelector, aTarget, anArgument)
NamespacesMonobjc.FoundationNSThreadDetachNewThreadSelectorToTargetWithObject(IntPtr, Id, Id)

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

Original signature is '+ (void)detachNewThreadSelector:(SEL)aSelector toTarget:(id)aTarget withObject:(id)anArgument'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static void DetachNewThreadSelectorToTargetWithObject(
	IntPtr aSelector,
	Id aTarget,
	Id anArgument
)
Public Shared Sub DetachNewThreadSelectorToTargetWithObject ( _
	aSelector As IntPtr, _
	aTarget As Id, _
	anArgument As Id _
)
public:
static void DetachNewThreadSelectorToTargetWithObject(
	IntPtr aSelector, 
	Id^ aTarget, 
	Id^ anArgument
)
Parameters
aSelector (IntPtr)
The selector for the message to send to the target. This selector must take only one argument and must not have a return value.
aTarget (Id)
The object that will receive the message aSelector on the new thread.
anArgument (Id)
The single argument passed to the target. May be nil.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)