Re: cursor handling
Re: cursor handling
- Subject: Re: cursor handling
- From: Dorian Johnson <email@hidden>
- Date: Fri, 6 Jul 2007 17:36:54 -0500
On Jul 6, 2007, at 10:42 AM, David Harper wrote:
I am not using cursor rectangles in the subview because the cursor
rectangle contains the entire view and i think mouseEntered and
mouseExited responses are sufficient to get the information necessary.
Cursor rectangles work fine for the entire view. It's much easier
using them as well. If done correctly the cursors should behave much
more consistently than if you choose to do it yourself.
Just use this override:
- (void)resetCursorRects
{
[self discardCursorRects];
[self addCursorRect:[self visibleRect] cursor:_cursor /* your
cursor ivar */];
}
And then any time you change the cursor, run
[[self window] invalidateCursorRectsForView:self];
Does that help or do you really have a better reason not to use the
provided cursor facilities?
- Dorian
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden