- Inherits from:
- Object
- Package:
- com.apple.yellow.application
An application uses an NSModalSession object when it begins and runs a modal session. An NSModalSession object encapsulates certain information about a session, such as the application, window, and graphics context involved. Because NSModalSession is a final class, you cannot subclass it. The NSApplication method beginModalSessionForWindow creates a modal session, and the NSApplication methods runModalSession and endModalSession take it as an argument. The runModalForWindow method also creates and uses an NSModalSession.
public NSModalSession(int sessionID)