MonobjcMonobjc Documented Class Library
DocumentForWindow Method (window)

Returns the document object whose window controller owns a specified window.

Original signature is '- (id)documentForWindow:(NSWindow *)window'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id DocumentForWindow(
	NSWindow window
Public Overridable Function DocumentForWindow ( _
	window As NSWindow _
) As Id
virtual Id^ DocumentForWindow(
	NSWindow^ window
window (NSWindow)
Return Value
The document object whose window controller owns window. Returns nil if window is nil, if window has no window controller, or if the window controller does not have an association with an instance of NSDocument.
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)