Instance Method

mouseEntered:

Automatically sent to the receiver when the cursor enters a cursor rectangle owned by the receiver.

Declaration

- (void)mouseEntered:(NSEvent *)event;

Parameters

anEvent

The event generated when the cursor enters the cursor rectangle.

Discussion

If used after setOnMouseEntered: has been called with an argument of YES, mouseEntered: can make the receiver the current cursor.

In your programs, you won’t invoke mouseEntered: explicitly. It’s only included in the class interface so you can override it.

For a more complete explanation, see Mouse-Tracking and Cursor-Update Events and the NSView method addTrackingRect:owner:userData:assumeInside:.

See Also

Controlling Which Cursor Is Current

+ pop

Pops the current cursor off the top of the stack.

- pop

Sends a pop message to the receiver’s class.

- push

Puts the receiver on top of the cursor stack and makes it the current cursor.

- set

Makes the receiver the current cursor.

- setOnMouseEntered:

Specifies whether the receiver accepts mouseEntered: events.

Deprecated
setOnMouseEntered

A Boolean value indicating whether the receiver becomes current on receiving a mouseEntered: message.

Deprecated
- mouseExited:

Automatically sent to the receiver when the cursor exits a cursor rectangle owned by the receiver.

Deprecated
- setOnMouseExited:

Sets whether the receiver accepts mouseExited: events.

Deprecated
setOnMouseExited

A Boolean value indicating whether the receiver becomes current when it receives a mouseExited: message.

Deprecated