Stop a drag. When?
Stop a drag. When?
- Subject: Stop a drag. When?
- From: Lorenzo <email@hidden>
- Date: Wed, 20 Aug 2003 21:50:53 +0200
Hi list,
I would like to notify to the user (with a dialog) that the task he is going
to do cannot be undone. So he can decide to go on or stop the task.
The task is a drag from an NSTableView to the Finder.
I encountered some problem.
----------------------------------
If I display the dialog during the
- (BOOL)tableView:(NSTableView *)tv writeRows:(NSArray*)rows
toPasteboard:(NSPasteboard*)pboard
it's too earlier, firstly because the mouse is still down, secondly because
the dialog appears just after the mouse has been moved for few millimeters
and I don't know yet what is the destination of the drag. The destination
could even be a text document window, and in this case I dont' need to show
the dialog.
----------------------------------
If I display the dialog during the
- (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)isLocal
I can't show the dialog here because this routine is being called
continuously, at any mouse movement. I also captured here the mouseUp and
returned NSDragOperationNone, but the Finder performed the task anyway(!).
----------------------------------
If I display the dialog during the
- (void)draggedImage:(NSImage *)anImage endedAt:(NSPoint)aPoint
operation:(NSDragOperation)operation
it's too late. The Finder already performed the task.
----------------------------------
Do you know how to do?
Thank you.
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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.