Re: Cursor rects, cursors and dragging
Re: Cursor rects, cursors and dragging
- Subject: Re: Cursor rects, cursors and dragging
- From: "Sean McBride" <email@hidden>
- Date: Fri, 19 Nov 2004 00:09:11 -0500
Julian Pellico (email@hidden) on Wed, Nov 10, 2004 13:03 said:
>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?
Did you ever figure this out? I am curious....
--
Erroneous google translation: "To cook with the furnace approximately 15
minutes and to be useful."
_______________________________________________
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