Re: NSCursor problem
Re: NSCursor problem
- Subject: Re: NSCursor problem
- From: "Sean McBride" <email@hidden>
- Date: Fri, 1 Dec 2006 14:23:51 -0500
- Organization: Rogue Research
On 2006-12-01 14:04, Sarah Dumoulin said:
> Thanks for the pointer. That does indeed describe precisely the
>problem that I am having. Unfortunately, the solution given doesn't
>seem to work for me. I've tried adding cursor rects left right and
>centre, but the behaviour remains wonky.
>
>Or, the simplified:
>
>- (void) resetCursorRects {
> [super resetCursorRects];
> [self addCursorRect: [self visibleRect] cursor: currentCursor];
>}
>
>With currentCursor set at init to arrowCursor.
>
>Neither of those worked, so I tried adding a [self
>addCursorRect ... ] call just before I call
>invalidateCursorRectsForView, and on program init.
It's been a long time since I've touched my cursor code, I'm afraid I
don't have any other suggestions. Once I changed my resetCursorRects to
ensure that addCursorRect is always called, everything worked as
described in the docs. If I need to force a refresh of the cursors I
call [[view window] invalidateCursorRectsForView:view]. I never need to
call resetCursorRects directly, as the docs warn against doing. I never
call addCursorRect anywhere except for in my resetCursorRects.
I guess the next thing I'd try is creating a small test project...
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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