# NSCursor

scottc@net-community.com
fedor@gnu.org

Holds an image to use as a cursor

1996,1999,2001 Free Software Foundation, Inc.
Software documentation for the NSCursor class
AppKit/NSCursor.h
NSCoding
Description forthcoming.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
IBeamCursor

Returns an I-beam cursor.

arrowCursor

Returns an arrow cursor.

closedHandCursor
Description forthcoming.
crosshairCursor
Description forthcoming.
currentCursor

Returns the current cursor.

disappearingItemCursor
Description forthcoming.
greenArrowCursor
Description forthcoming.
hide

Hides the current cursor.

isHiddenUntilMouseMoves

Returns whther the cursor is hidden until mouse moves

openHandCursor
Description forthcoming.
pointingHandCursor
Description forthcoming.
pop

Pops the cursor off the top of the stack and makes the previous one as the current cursor.

resizeDownCursor
Description forthcoming.
resizeLeftCursor
Description forthcoming.
resizeLeftRightCursor
Description forthcoming.
resizeRightCursor
Description forthcoming.
resizeUpCursor
Description forthcoming.
resizeUpDownCursor
Description forthcoming.
setHiddenUntilMouseMoves:
flag

Hides the cursor if flag is `YES`. Unhides it if `NO`

unhide

Shows the NSCursor.

See Also: +hide

hotSpot

Returns the hot spot point of the NSCursor. This is in the cursor's coordinate system which is a flipped on (origin at the top left of the cursor).

image

Returns the image of the NSCursor

initWithImage:
newImage

Initializes and returns a new NSCursor with a NSImage newImage and a hot spot point with x=0 and y=0 (top left corner).

See Also: -initWithImage:hotSpot:

initWithImage:
newImage
foregroundColorHint:
fg
backgroundColorHint:
bg
hotSpot:
hotSpot
Description forthcoming.
initWithImage:
newImage
hotSpot:
hotSpot

Initializes and returns a new NSCursor with a NSImage newImage and the hot spot to hotSpot.

NB. The coordinate system of an NSCursor is flipped, so a hotSpot at 0,0 is in the top left corner of the cursor.

See Also: -initWithImage: -setImage:

isSetOnMouseEntered

Returns whether if the cursor is set on -mouseEntered: .

See Also: -setOnMouseEntered: -mouseEntered: -set -isSetOnMouseExited

isSetOnMouseExited

Returns whether if the cursor is push on -mouseExited: .

See Also: -setOnMouseEntered: -mouseExited: -set -isSetOnMouseEntered

mouseEntered:
theEvent

Sets the cursor if -isSetOnMouseEntered is `YES` or pushs the cursor if -isSetOnMouseExited is `NO`

See Also: -isSetOnMouseEntered -isSetOnMouseExited

mouseExited:
theEvent

Sets the cursor if -isSetOnMouseExited is `YES` or pops the cursor if -isSetOnMouseEntered is `NO`

See Also: -isSetOnMouseExited -isSetOnMouseEntered

pop

Pops the cursor off the top of the stack and makes the previous the current cursor.

push

Adds the NSCursor into the cursor stack and makes it the current cursor.

See Also: -pop -set

set

Sets the NSCursor as the current cursor.

setHotSpot:
spot

Sets the hot spot point of the NSCursor to spot

setImage:
newImage

Sets newImage the image of the NSCursor

setOnMouseEntered:
flag

Sets whether if the cursor is set on -mouseEntered: .

See Also: -isSetOnMouseEntered -mouseEntered: -set

setOnMouseExited:
flag

Sets whether if the cursor is push on -mouseExited: .

See Also: -isSetOnMouseExited -mouseExited: -set