Contents

NSScreen

An object that describes the attributes of a computer’s monitor or screen.

Declaration

class NSScreen

Overview

An app may use an NSScreen object to retrieve information about a screen and use this information to decide what to display on that screen. For example, an app may use the deepest method to find out which of the available screens can best represent color and then might choose to display all of its windows on that screen.

Create the application object before you use the methods in this class, so that the application object can make the necessary connection to the window system. You can make sure the application object exists by invoking the shared method of NSApplication. If you created your app with Xcode, the application object is automatically created for you during initialization.

Topics

Getting Screen Objects

Getting Screen Information

Converting Between Screen and Backing Coordinates

Getting the Visible Portion of the Screen

Getting Extended Dynamic Range Details

Getting Variable Refresh Rate Details

Receiving Screen-Related Notifications

Synchronizing with the display’s refresh rate

Instance Properties