• 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: Refresh the Cursor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Refresh the Cursor


  • Subject: Re: Refresh the Cursor
  • From: Chris Ryland <email@hidden>
  • Date: Fri, 24 Sep 2004 16:07:44 -0400

On Sep 2, 2004, at 5:06 PM, Jason Bell wrote:

I have a problem with the cursor not changing to reflect the fact that it is (or is not) in a defined cursorRect when the cursorRects are changed. What I've been searching for is a method that will "refresh" the cursor by checking if it is currently in a cursorRect.

Here are the specifics: I have a custom view that displays some items that can be clicked on. When the view is drawn, resetCursorRects uses addCursorRect:cursor: to add a rect for each item. At this point, everything is fine. Now, the user clicks one of the items (a hand cursor is being displayed while over the item). This causes the view to change and draw a different set of items with different cursorRects. At this point, the cursor is no longer in a cursorRect. However, the cursor is still a hand since it never received a mouseExited event. The worst part about this is that the cursor is now stuck as a hand even if I move to other areas of the window (like the title bar). Any suggestions?

Have you tried the obvious invalidateCursorRectsForView with your view?

(I don't know much about this, just guessing by poking around the documentation that this is what you'd need.)

Cheers!
--Chris Ryland / Em Software, Inc. / www.emsoftware.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: validateDrop called twice for same Event on TableView DataSource.
  • Next by Date: Direct pixel access
  • Previous by thread: validateDrop called twice for same Event on TableView DataSource.
  • Next by thread: Direct pixel access
  • Index(es):
    • Date
    • Thread