Next Page > Hide TOC

Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

NSModalSession

Inherits from
Object
Package
com.apple.cocoa.application
Companion guide

Overview

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.

Tasks

Constructors

Constructors

NSModalSession

public NSModalSession(int sessionID)

Discussion

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



Next Page > Hide TOC


© 1997, 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-02-01)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.