NSCursor bug?
NSCursor bug?
- Subject: NSCursor bug?
- From: Ricky Sharp <email@hidden>
- Date: Sat, 5 Nov 2005 15:58:39 -0600
I'm now adding large cursor support in my app. All my custom
controls/views simply implement:
- (void)resetCursorRects
{
[self addCursorRect:[self bounds] cursor:[IICursorFactory
pointingCursor]];
}
where pointingCursor returns a singleton NSCursor instance.
One such view that implements this is IIBackground which completely
covers the entire contents of a window. When I launch my app, if the
mouse cursor happens to be over any part of my window (and thus over
any part of my background view), the cursor remains as the system
arrow. If I move off the window, then back on, I then get my
appropriate cursor. Also, if I launch the app such that the mouse
cursor is outside the window, moving the cursor within the window
changes it correctly.
I've tried to "refresh" the cursor by calling things like
resetCursorRects from within a windowDidBecomeKey: delegate method.
Also tried invalidateCursorRectsForView: from within my controls'
viewDidMoveToWindow method. These did not help.
I've noticed this bug also in this sample:
<http://developer.apple.com/samplecode/PDFView/PDFView.html>
The easiest way to reproduce it is to run it once to see where it
puts its window on your screen. Then, move a finder window
containing the application icon somewhere under that area. Quit the
app, then double-click the icon to launch it again.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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