NSScreen object describes the attributes of a computer’s monitor, or screen. An application may use an
NSScreen object to retrieve information about a screen and use this information to decide what to display upon that screen. For example, an application may use the
deepest() method to find out which of the available screens can best represent color and then may choose to display all of its windows on that screen.
- macOS 10.10+
The application object should be created 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 application with Xcode, the application object is automatically created for you during initialization.