Re: Dynamic cursor rectangles?
Re: Dynamic cursor rectangles?
- Subject: Re: Dynamic cursor rectangles?
- From: Allan Odgaard <email@hidden>
- Date: Wed, 3 Mar 2004 09:43:04 +0100
On 3. Mar 2004, at 1:33, Eric Forget wrote:
Perhaps they invalidate and re-add all (visible) cursor rectangles
each
time the view is scrolled?
In the overloaded function resetCursorRects add cursor rectangles with
addCursorRect:cursor: only for visible rect. You obtain the visible
rect
with: [[self enclosingScrollView] documentVisibleRect];
Ahh, I overlooked this part, from the "Conceptual" documentation:
An NSViews cursor rectangles are automatically reset whenever:
[...]
It is scrolled in an NSScrollView or NSClipView.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.