MonobjcMonobjc Documented Class Library
InitWithDrawSelectorDelegate Method (aMethod, anObject)
NamespacesMonobjc.AppKitNSCustomImageRepInitWithDrawSelectorDelegate(IntPtr, Id)

Returns an NSCustomImageRep object initialized with the specified delegate information.

Original signature is '- (id)initWithDrawSelector:(SEL)aMethod delegate:(id)anObject'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithDrawSelectorDelegate(
	IntPtr aMethod,
	Id anObject
)
Public Overridable Function InitWithDrawSelectorDelegate ( _
	aMethod As IntPtr, _
	anObject As Id _
) As Id
public:
virtual Id^ InitWithDrawSelectorDelegate(
	IntPtr aMethod, 
	Id^ anObject
)
Parameters
aMethod (IntPtr)
The selector to call when it is time to draw the image. The method should take a single parameter of type id that represents the NSCustomImageRep object that initiated drawing. The method must draw the image starting at the point (0, 0) in the current coordinate system.
anObject (Id)
The delegate object that responds to the selector in aMethod.
Return Value
An initialized NSCustomImageRep object, or nil if the object could not be initialized.
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)