Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSCursorMBS class.

NSCursorMBS.arrowCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the default cursor, the arrow cursor.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.arrowCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

The default cursor, a slanted arrow with its hot spot at the tip. The arrow cursor is the one you're used to seeing over buttons, scrollers, and many other objects in the window system.

Some examples using this method:

NSCursorMBS.closedHandCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the closed-hand system cursor.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.closedHandCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

Some examples using this method:

NSCursorMBS.contextualMenuCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the contextual menu system cursor.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.contextualMenuCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

Available in Mac OS X v10.6 and later.

NSCursorMBS.crosshairCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the cross-hair system cursor.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.crosshairCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

This cursor is used for situations when precise location is required (where the lines cross is the hot spot).

Some examples using this method:

NSCursorMBS.currentCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the application's current cursor.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.currentCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

The top cursor on the application's cursor stack. This cursor may not be the visible cursor on the screen if a different application is currently active.

Some examples using this method:

NSCursorMBS.currentSystemCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the current system cursor.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.currentSystemCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

Returns a cursor whose image and hot spot match those of the currently-displayed cursor on the system.
This method returns the current system cursor regardless of which application set the cursor, and whether Cocoa or Carbon APIs were used to set it.
This method replaces the now deprecated QDGetCursorData function.
Available in Mac OS X v10.6 and later.

NSCursorMBS.disappearingItemCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a cursor indicating that the current operation will result in a disappearing item.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.disappearingItemCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

The system cursor that indicates that the current operation will result in a disappearing item (for example, when dragging an item from the dock or a toolbar).

Available in Mac OS X v10.3 and later.

Some examples using this method:

NSCursorMBS.dragCopyCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a cursor indicating that the current operation will result in a copy action.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.dragCopyCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

Available in Mac OS X v10.6 and later.

NSCursorMBS.dragLinkCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a cursor indicating that the current operation will result in a link action.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.dragLinkCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

Available in Mac OS X v10.6 and later.

NSCursorMBS.hide

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Makes the current cursor invisible.

If another cursor becomes current, that cursor will be invisible, too. It will remain invisible until you invoke the unhide method.

hide overrides setHiddenUntilMouseMoves.

NSCursorMBS.IBeamCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a cursor that looks like a capital I with a tiny crossbeam at its middle.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.IBeamCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

The I-beam cursor. This is the cursor that you're used to seeing over editable or selectable text. The I-beam cursor's default hot spot is where the crossbeam intersects the I.

Some examples using this method:

NSCursorMBS.IBeamCursorForVerticalLayout as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a cursor that looks like a capital I with a tiny crossbeam at its middle.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.IBeamCursorForVerticalLayout
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

Available in Mac OS X 10.7.

NSCursorMBS.openHandCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the open-hand system cursor.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.openHandCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

Available in Mac OS X v10.3 and later.

Some examples using this method:

NSCursorMBS.operationNotAllowedCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the operation not allowed cursor.

This cursor indicates that the operation that is being attempted, perhaps dragging to an item that can't accept the drag type, is being denied.

Available in Mac OS X v10.6 and later.

NSCursorMBS.pointingHandCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the pointing-hand system cursor.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.pointingHandCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

The pointing-hand cursor. The tip of the pointing finger is the hot spot.

Some examples using this method:

NSCursorMBS.pop

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Pops the current cursor off the top of the stack.

The new object on the top of the stack becomes the current cursor. If the current cursor is the only cursor on the stack, this method does nothing.

See also:

NSCursorMBS.resizeDownCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the resize-down system cursor.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.resizeDownCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

The resize-down cursor. This cursor is used when moving or resizing an object to indicate that the user can move only in the indicated direction.

Available in Mac OS X v10.3 and later.

Some examples using this method:

NSCursorMBS.resizeLeftCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the resize-left system cursor.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.resizeLeftCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

The resize-left cursor. This cursor is used when moving or resizing an object to indicate that the user can move only in the indicated direction.

Available in Mac OS X v10.3 and later.

Some examples using this method:

NSCursorMBS.resizeLeftRightCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the resize-left-and-right system cursor.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.resizeLeftRightCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

The resize-left-and-right cursor. This cursor is used when moving or resizing an object and the object can be moved left or right.

Available in Mac OS X v10.3 and later.

Some examples using this method:

NSCursorMBS.resizeRightCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the resize-right system cursor.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.resizeRightCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

The resize-right cursor. This cursor is used when moving or resizing an object to indicate that the user can move only in the indicated direction.

Available in Mac OS X v10.3 and later.

Some examples using this method:

NSCursorMBS.resizeUpCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the resize-up system cursor.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.resizeUpCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

The resize-up cursor. This cursor is used when moving or resizing an object to indicate that the user can move only in the indicated direction.

Available in Mac OS X v10.3 and later.

Some examples using this method:

NSCursorMBS.resizeUpDownCursor as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the resize-up-and-down system cursor.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.resizeUpDownCursor
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

The resize-up-and-down cursor. This cursor is used when moving or resizing an object and the object can be moved up or down.

Available in Mac OS X v10.3 and later.

Some examples using this method:

NSCursorMBS.ringCursorWithDiameter(diameter as Double) as NSCursorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a ring cursor with the given size.
Example
// shows cursor in window
dim c as NSCursorMBS = NSCursorMBS.ringCursorWithDiameter(20)
dim i as NSImageMBS = c.image
window1.Backdrop=i.CopyPictureWithMask

Some examples using this method:

NSCursorMBS.setHiddenUntilMouseMoves(value as boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Sets whether the cursor is hidden until the mouse moves.

value: True to hide the cursor until one of the following occurs:
The mouse moves.
You invoke the method again, with flag set to false.

Do not try to counter this method by invoking unhide. The results are undefined.

NSCursorMBS.unhide

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Negates an earlier call to hide by showing the current cursor.

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


The biggest plugin in space...