Platforms to show: All Mac Windows Linux Cross-Platform

NSScreenMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
An NSScreen object describes the attributes of a computer's monitor, or screen.
Example
Dim mainScreen As NSScreenMBS = NSScreenMBS.mainScreen

msgbox mainScreen.localizedName

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 deepestScreen 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.

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 sharedApplication method of NSApplication. If you created your application with Xcode, the application object is automatically created for you during initialization.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Release notes

  • Version 19.4
    • Modernized NSScreenMBS class with more real properties.

The items on this page are in the following plugins: MBS MacBase Plugin.


NSSavePanelObserverMBS   -   NSScrollerMBS


The biggest plugin in space...