Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Move data between applications? (NSDragOperationMove)



Is it possible to allow the user both to move and copy data from my application (by dragging it to another application)?

The problem is that using the modifier keys, the user can only restrict the dragging mask to either Generic, Copy, Link, or combinations of these, but not Move! So unless Move is the default action taken by the drag destination, there is no way for the user to change it into a Move.

I figured then I'd just use Generic as the Move action, since a) most applications use Copy by default, b) contrary to Copy, the Generic action does not show the plus sign, and c) the semantics of Generic is not defined.

But then I found out that Finder *always* choose the Generic option (and does show the plus sign for it) -- so this strategy would only work between Cocoa applications.

Am I missing something here? Didn't Apple like pioneer drag'n'drop? ;)
_______________________________________________
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.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.