MonobjcMonobjc Documented Class Library
TryToPerformWith Method (anAction, anObject)
NamespacesMonobjc.AppKitNSResponderTryToPerformWith(IntPtr, Id)

Attempts to perform the action indicated method with a specified argument.

Original signature is '- (BOOL)tryToPerform:(SEL)anAction with:(id)anObject'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool TryToPerformWith(
	IntPtr anAction,
	Id anObject
)
Public Overridable Function TryToPerformWith ( _
	anAction As IntPtr, _
	anObject As Id _
) As Boolean
public:
virtual bool TryToPerformWith(
	IntPtr anAction, 
	Id^ anObject
)
Parameters
anAction (IntPtr)
The selector identifying the action method.
anObject (Id)
The object to use as the sole argument of the action method.
Return Value
Returns NO if no responder is found that responds to anAction, YES otherwise.
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.AppKit (Module: Monobjc.AppKit)