MonobjcMonobjc Documented Class Library
AncestorSharedWithView Method (aView)
NamespacesMonobjc.AppKitNSViewAncestorSharedWithView(NSView)

Returns the closest ancestor shared by the receiver and a given view.

Original signature is '- (NSView *)ancestorSharedWithView:(NSView *)aView'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSView AncestorSharedWithView(
	NSView aView
)
Public Overridable Function AncestorSharedWithView ( _
	aView As NSView _
) As NSView
public:
virtual NSView^ AncestorSharedWithView(
	NSView^ aView
)
Parameters
aView (NSView)
The view to test (along with the receiver) for closest shared ancestor.
Return Value
The closest ancestor or nil if there’s no such object. Returns self if aView is identical to the receiver.
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)