Platforms to show: All Mac Windows Linux Cross-Platform
NSCursorMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa | MBS MacBase Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
In Cocoa, you can change the currently displayed cursor based on the position of the mouse over one of your views. You might use this technique to provide visual feedback about what actions the user can take with the mouse. For example, you might display one of the resize cursors whenever the mouse moves over a portion of your view that acts as a custom resizing handle. To set this up, you associate a cursor object with one or more cursor rectangles in the view.
Cursor rectangles are a specialized type of tracking rectangles, which are used to monitor the mouse location in a view. Views implement cursor rectangles using tracking rectangles but provide methods for setting and refreshing cursor rectangles that are distinct from the generic tracking rectangle interface. For information on how to set up cursor rectangles, see "Handling Tracking-Rectangle and Cursor-Update Events in Views".
- property Handle as Integer
- 14 methods
- method Constructor(image as NSImageMBS, foregroundColorHint as NSColorMBS, backgroundColorHint as NSColorMBS, HotSpotX as Double, HotSpotY as Double)
- method Constructor(image as NSImageMBS, HotSpotX as Double, HotSpotY as Double)
- method hotSpotX as Double
- method hotSpotY as Double
- method image as NSImageMBS
- method isSetOnMouseEntered as boolean
- method isSetOnMouseExited as boolean
- method mouseEntered(e as NSEventMBS)
- method mouseExited(e as NSEventMBS)
- method pop
- method push
- method set
- method setOnMouseEntered(flag as boolean)
- method setOnMouseExited(flag as boolean)
- 25 shared methods
- shared method arrowCursor as NSCursorMBS
- shared method closedHandCursor as NSCursorMBS
- shared method contextualMenuCursor as NSCursorMBS
- shared method crosshairCursor as NSCursorMBS
- shared method currentCursor as NSCursorMBS
- shared method currentSystemCursor as NSCursorMBS
- shared method disappearingItemCursor as NSCursorMBS
- shared method dragCopyCursor as NSCursorMBS
- shared method dragLinkCursor as NSCursorMBS
- shared method hide
- shared method IBeamCursor as NSCursorMBS
- shared method IBeamCursorForVerticalLayout as NSCursorMBS
- shared method openHandCursor as NSCursorMBS
- shared method operationNotAllowedCursor as NSCursorMBS
- shared method pointingHandCursor as NSCursorMBS
- shared method pop
- shared method resizeDownCursor as NSCursorMBS
- shared method resizeLeftCursor as NSCursorMBS
- shared method resizeLeftRightCursor as NSCursorMBS
- shared method resizeRightCursor as NSCursorMBS
- shared method resizeUpCursor as NSCursorMBS
- shared method resizeUpDownCursor as NSCursorMBS
- shared method ringCursorWithDiameter(diameter as Double) as NSCursorMBS
- shared method setHiddenUntilMouseMoves(value as boolean)
- shared method unhide
This class has no sub classes.
Some examples using this class:
Blog Entries
- MBS Xojo Plugins, version 20.1pr3
- MBS Real Studio Plugins, version 11.2pr9
- MBS REALbasic plug-in 9.6
- MonkeyBread Software Releases the MBS REALbasic plug-ins 8.6
Release notes
- Version 20.1
- Fixed crash in NSCursorMBS.currentSystemCursor when used in a thread.
The items on this page are in the following plugins: MBS MacBase Plugin.
NSControlMBS - NSCustomTouchBarItemMBS