resetCursorRects being called too often?
resetCursorRects being called too often?
- Subject: resetCursorRects being called too often?
- From: Eric <email@hidden>
- Date: Wed, 17 May 2006 09:56:06 -0700
I have several tracking rects that I add to my program for mouseover
effect. I reset them within my overridden resetCursorRects method.
However, I discovered resetCursorRects is being called too often, often
unnecessarily. For example, I have a WebView in the same window as my view
which has the cursor rects. Whenever I mouse over a link in the WebView,
the cursor changes, which apparently causes resetCursorRect to be called.
This causes too many unnecessary reset.
This behavior seems strange to me, for two reasons:
1.) according to the documentation, resetCursorRect should only be called
when view is resized and so on, not when the cursor changes
2.) why does events in WebView cause resetCursorRects in my view to be
called?
If this is indeed a problem that can't be avoided, I'd like some suggestion
for alternative methods of resetting tracking rects. My initial thought is
to reset the tracking rect on these events: viewWillStartLiveResize,
viewDidMoveToSuperview, viewDidEndLiveResize
Thanks,,
Eric
_______________________________________________
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