MonobjcMonobjc Documented Class Library
RunModalSession Method (session)

Runs a given modal session, as defined in a previous invocation of beginModalSessionForWindow:.

Original signature is '- (NSInteger)runModalSession:(NSModalSession)session'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSInteger RunModalSession(
	IntPtr session
Public Overridable Function RunModalSession ( _
	session As IntPtr _
) As NSInteger
virtual NSInteger RunModalSession(
	IntPtr session
session (IntPtr)
The modal session structure returned by the beginModalSessionForWindow: method for the window to be displayed.
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)