• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSCursor bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: 10.4.3 : CoreData crash
  • Next by Date: obj-c on linux and Cocoa on linux, where can reach them ?
  • Previous by thread: 10.4.3 : CoreData crash
  • Next by thread: obj-c on linux and Cocoa on linux, where can reach them ?
  • Index(es):
    • Date
    • Thread