Re: cocoa-dev digest, Vol 2 #2903 - 15 msgs
Re: cocoa-dev digest, Vol 2 #2903 - 15 msgs
- Subject: Re: cocoa-dev digest, Vol 2 #2903 - 15 msgs
- From: Julien Guimont <email@hidden>
- Date: Mon, 8 Sep 2003 23:01:32 -0400
Hello,
Remember to sleeping power of the doc!
(1) Is there a way to manipulate a drag image after the drag has begun;
move it, redraw it, etc.? I've searched the archives and can't find
very much other than it's not possible. I want to snap the image to
locations in the destination view during the drag and make minor
changes to the image.
Look at NSDraggingInfo protocol for:
slideDraggedImageTo:
- (void) slideDraggedImageTo: (NSPoint) aPoint
Slides the image to aPoint , a specified location in the screen
coordinate system. This method can be used to snap the image down to a
particular location. It should only be invoked from within the
destination's implementation of prepareForDragOperation: -in other
words, after the user has released the image but before it is removed
from the screen.
(2) Is there a way to programmatically cancel a drag and make the drag
image disappear after the drag has begun? If I can't do (1) above, I'd
like to cancel the drag after receiving dragEntered: and take over
manually.
It is not mac-like to do such a thing... the image should slide back to
it original position if not accepted by to receiver view. It must be
release (mouse up) to do so.
I hope this can help!
Bye
Julien Guimont
www.juggysoft.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.