MonobjcMonobjc Documented Class Library
HitTest Method (aPoint)

Returns the farthest descendant of the receiver in the view hierarchy (including itself) that contains a specified point, or nil if that point lies completely outside the receiver.

Original signature is '- (NSView *)hitTest:(NSPoint)aPoint'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSView HitTest(
	NSPoint aPoint
Public Overridable Function HitTest ( _
	aPoint As NSPoint _
) As NSView
virtual NSView^ HitTest(
	NSPoint aPoint
aPoint (NSPoint)
A point that is in the coordinate system of the receiver’s superview, not of the receiver itself.
Return Value
A view object that is the farthest descendent of aPoint.
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)