• 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
Cursor rects, cursors and dragging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cursor rects, cursors and dragging


  • Subject: Cursor rects, cursors and dragging
  • From: Julian Pellico <email@hidden>
  • Date: Wed, 10 Nov 2004 10:03:36 -0800

Hi,

Long time no chat, list :)

I have an application where the user can drag some images between
windows. I decided that on 10.3 I'd like to change the cursor to open
hand when the mouse is over these images, and to close hand while the
user is dragging. I set up cursor rects with the open hand for the
images. On a mouseDown over the images, I do [[NSCursor
closedHandCursor] push]. On a mouseUp I do [NSCursor pop]. This seems
to work well enough in that, if the mouse is released in the origin
view after dragging, the cursor goes back to open hand or arrow
depending on where it is.

I'd like the cursor to remain closed hand throughout the duration of
the drag. However, as soon as the drag leaves the source window, the
cursor changes to arrow. It stays this way regardless of whether the
cursor goes back into the window again. So I must be missing something
here. Is there something else I need to take care of? Is there some
more automatic method of changing the cursor for a drag?

Thanks
 _______________________________________________
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

  • Follow-Ups:
    • Re: Cursor rects, cursors and dragging
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Re: Fall asleep ok, awaking ...
  • Next by Date: Looking for the WWDC-2003 Cocoa example code
  • Previous by thread: Re: Fall asleep ok, awaking ...
  • Next by thread: Re: Cursor rects, cursors and dragging
  • Index(es):
    • Date
    • Thread