O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSScreen — Mac OS X 10.0

Synopsis

This class represents a user’s monitor, and allows clients to ascertain properties of the display such as width and height in pixels, or color bit-depth. This class works only in the presence of an instance of NSApplication; NSScreen requires that an application have a connection to the window server to obtain information about the screen, which is provided by NSApplication.

image with no caption

@interface NSScreen : NSObject
                                  // Convenience Constructors
   + (NSArray *)screens;
                                  // Class Methods
   + (NSScreen *)deepestScreen;
   + (NSScreen *)mainScreen;
                                  // Instance Methods
   - (NSWindowDepth)depth;
   - (NSDictionary *)deviceDescription;
   - (NSRect)frame;
   - (const NSWindowDepth *)supportedWindowDepths;
   - (NSRect)visibleFrame;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required