MonobjcMonobjc Documented Class Library
RunModalForWindow Method (aWindow)
NamespacesMonobjc.AppKitNSApplicationRunModalForWindow(NSWindow)

Starts a modal event loop for a given window.

Original signature is '- (NSInteger)runModalForWindow:(NSWindow *)aWindow'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSInteger RunModalForWindow(
	NSWindow aWindow
)
Public Overridable Function RunModalForWindow ( _
	aWindow As NSWindow _
) As NSInteger
public:
virtual NSInteger RunModalForWindow(
	NSWindow^ aWindow
)
Parameters
aWindow (NSWindow)
The window to be displayed modally. If it is not already visible, the window is centered on the screen using the value in its centermethod and made visible and key. If it is already visible, it is simply made key.
Return Value
An integer indicating the reason that this method returned. See the discussion for a description of possible return values.
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)