• 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: How to correctly control cursor???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to correctly control cursor???


  • Subject: Re: How to correctly control cursor???
  • From: "Sean McBride" <email@hidden>
  • Date: Fri, 5 Nov 2004 22:55:11 -0500

OK, this reply is really late but oh well. :)


Scott Ribe (email@hidden) on Sat, Oct 9, 2004 14:38 said:

>I'm implementing a custom control, and want it to change the cursor when the
>pointer is moved over it.

I'm trying to do the same.

>OK, I find that cursor tracking rects don't work
>as advertised.

I have found the same. :(  In my case, I find
invalidateCursorRectsForView: does not work reliably.  My workaround is
to keep track of the cursor and call removeCursorRect: and
resetCursorRects myself.

>So next I try to add tracking rects and just use those.

I didn't try that.

>find that when the mouse is moved quickly, the newly-entered area will be
>have its mouseEntered method called *before* the just-left area has its
>mouseExited method called. This means that simply pushing and popping the
>cursor on entry and exit won't work.

I haven't seem this myself, and have tried to reproduce it, but can't.
Maybe its because I'm not using tracking regions directly.

But apparently the same problem exists in Carbon.  You might look at the
thread "Mouse tracking regions" on 2004-10-28 on the Carbon list.  I'd
give a URL, but it seems Apple's list archives are not very recent.

I'm afraid I probably haven't helped much, but since no one else
answered, I figured I'd contribute what little I could.

--
Erroneous google translation: "She does not love pig-turkey, the toys
which make noise and especially the sound of the harmonica..."


 _______________________________________________
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: Custom control, changing cursor, bindings and placeholders
  • Next by Date: Re: Regex pattern to find URLs
  • Previous by thread: Custom control, changing cursor, bindings and placeholders
  • Next by thread: Re: How to correctly control cursor???
  • Index(es):
    • Date
    • Thread