Cursor rects, cursors and dragging
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