• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Move data between applications? (NSDragOperationMove)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Move data between applications? (NSDragOperationMove)


  • Subject: Move data between applications? (NSDragOperationMove)
  • From: Allan Odgaard <email@hidden>
  • Date: Tue, 29 Jun 2004 11:47:27 +0200

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.


  • Prev by Date: how decode xml utf-8 string into nsstring??
  • Next by Date: Need to change screen elements on button clicked in drawer
  • Previous by thread: Re: how decode xml utf-8 string into nsstring??
  • Next by thread: Need to change screen elements on button clicked in drawer
  • Index(es):
    • Date
    • Thread