• 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
Re: Cursor updates - bug or programmer ignorance?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cursor updates - bug or programmer ignorance?


  • Subject: Re: Cursor updates - bug or programmer ignorance?
  • From: Luke Evans <email@hidden>
  • Date: Wed, 21 Jan 2009 10:49:21 -0800


If you're devious enough, you might be able to set a breakpoint where NSScrollView is setting the cursor. (You could try, for example, to subclass NSCursor using an image you supply, with an override of setCursor: that just calls super. Then pass a cursor of your subclass to setDocumentCursor.) The backtrace when the breakpoint is hit *might* give you a clue as to why it's doing it.



I tried the trojan horse NSCursor subclass.  The backtrace is:

(gdb) backtrace
#0 -[TraceCursor set] (self=0x13b5a0, _cmd=0x96c69d34) at /Users/luke/ Projects/TableTester/TraceCursor.m:24
#1 0x911d85ce in _handleInvalidCursorRectsNote ()
#2 0x935cb9a2 in __CFRunLoopDoObservers ()
#3 0x935cccfc in CFRunLoopRunSpecific ()
#4 0x935cdcd8 in CFRunLoopRunInMode ()
#5 0x93a022c0 in RunCurrentEventLoopInMode ()
#6 0x93a020d9 in ReceiveNextEventCommon ()
#7 0x93a01f4d in BlockUntilNextEventMatchingListInMode ()
#8 0x9114cd7d in _DPSNextEvent ()
#9 0x9114c630 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#10 0x9114566b in -[NSApplication run] ()
#11 0x911128a4 in NSApplicationMain ()
#12 0x000025d8 in main (argc=1, argv=0xbffff768) at /Users/luke/ Projects/TableTester/main.m:13


The only thing I can see (vaguely) useful here is the _handleInvalidCursorRectsNote, the rest being just event marshalling.

Maybe this is just old-school cursor management demanding attention when I thought I could just implement the modern tracking area stuff to manage the cursor?
I was hoping to avoid having to bother with the old cursor rects in its dotage, but maybe there are places where it just has to be taken care of. I'd better go read up on how this old stuff works in case that's the solution.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: Cursor updates - bug or programmer ignorance?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: CALayer animating images
  • Next by Date: Re: runModalForWindow, best solution to modal session
  • Previous by thread: Re: Cursor updates - bug or programmer ignorance?
  • Next by thread: Re: Cursor updates - bug or programmer ignorance?
  • Index(es):
    • Date
    • Thread