MonobjcMonobjc Documented Class Library
NSThread Constructor (target, selector, argument)
NamespacesMonobjc.FoundationNSThreadNSThread(Id, IntPtr, Id)

Returns an NSThread object initialized with the given arguments.

Original signature is '- (id)initWithTarget:(id)target selector:(SEL)selector object:(id)argument'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSThread(
	Id target,
	IntPtr selector,
	Id argument
)
Public Sub New ( _
	target As Id, _
	selector As IntPtr, _
	argument As Id _
)
public:
NSThread(
	Id^ target, 
	IntPtr selector, 
	Id^ argument
)
Parameters
target (Id)
The object to which the message specified by selector is sent.
selector (IntPtr)
The selector for the message to send to target. This selector must take only one argument and must not have a return value.
argument (Id)
The single argument passed to the target. May be nil.
Return Value
An NSThread object initialized with the given arguments.
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)