Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSScreenMBS class.

NSScreenMBS.NSScreenColorSpaceDidChangeNotification as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The notification name for the notification sent when the screen colorspace changed.

The notification object is the NSScreen whose colorSpace has changed. This notification does not contain a userInfo dictionary.
Use this constant with NSNotificationObserverMBS class to get an event when such a notification is sent.
Available in Mac OS X v10.6 and later.

NSScreenMBS.screens as NSScreenMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns an array of NSScreen objects representing all of the screens available on the system.

Returns an array of the NSScreen objects available on the current system or nil if the screen information could not be obtained from the window system.

The screen at index 0 in the returned array corresponds to the primary screen of the user's system. This is the screen that contains the menu bar and whose origin is at the point (0, 0). In the case of mirroring, the first screen is the largest drawable display; if all screens are the same size, it is the screen with the highest pixel depth. This primary screen may not be the same as the one returned by the mainScreen method, which returns the screen with the active window.

The array should not be cached. Screens can be added, removed, or dynamically reconfigured at any time. When the display configuration is changed, the default notification center sends a NSApplicationDidChangeScreenParametersNotification notification.

Some examples using this method:

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


The biggest plugin in space...