How to invoke resetCursorRects of NSTextView.
How to invoke resetCursorRects of NSTextView.
- Subject: How to invoke resetCursorRects of NSTextView.
- From: Satoshi Matsumoto <email@hidden>
- Date: Mon, 13 Sep 2004 16:36:30 +0900
Hi all,
I want to change the mouse cursor shape to the openHandCursor when the mouse
pointer entered in the selected area in the NSTextView.
At first, I tried to change the cursor shape simply overriding the method
- (void) resetCursorRects
But the cursor shape remains the Ibeam shape because the method
resetCursorRects is not called when the selection was changed.
As Application code should never invoke resetCursorRects directly, then I
called the following method in didSelectionChanged notification method.
- (void)invalidateCursorRectsForView:(NSView *)aView;
But the cursor shape still remains the Ibeam shape because
invalidateCursorRectsForView works very lazily.
Does anyone know how to invoke resetCursorRects as soon as the selection was
changed.
Thanks.
Satoshi Matsumoto
-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden