Developer Documentation
PATH  Mac OS X Documentation > Application Kit Reference: Java

Table of Contents

NSModalSession


Inherits from:
Object
Package:
com.apple.yellow.application


Class Description


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.




Constructors



NSModalSession

public NSModalSession(int sessionID)

Returns an NSModalSession identified by the session number sessionID, which much be unique for the session.


Table of Contents