MonobjcMonobjc Documented Class Library
NSInvocationOperation Constructor (target, sel, arg)
NamespacesMonobjc.FoundationNSInvocationOperationNSInvocationOperation(Id, IntPtr, Id)

Returns an NSInvocationOperation object initialized with the specified target and selector.

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

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSInvocationOperation(
	Id target,
	IntPtr sel,
	Id arg
)
Public Sub New ( _
	target As Id, _
	sel As IntPtr, _
	arg As Id _
)
public:
NSInvocationOperation(
	Id^ target, 
	IntPtr sel, 
	Id^ arg
)
Parameters
target (Id)
The object defining the specified selector.
sel (IntPtr)
The selector to invoke when running the operation. The selector may take 0 or 1 parameters; if it accepts a parameter, the type of that parameter must be id. The return type of the method may be void, a scalar value, or an object that can be returned as an id type.
arg (Id)
The parameter object to pass to the selector. If the selector does not take an argument, specify nil.
Return Value
An initialized NSInvocationOperation object or nil if the target object does not implement the specified selector.
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)