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.
- window (NSWindow)
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.
Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)