• 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
Re: Core Data: Undoing Cut-Paste, Drag-Drop between documents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data: Undoing Cut-Paste, Drag-Drop between documents


  • Subject: Re: Core Data: Undoing Cut-Paste, Drag-Drop between documents
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 26 Oct 2009 22:19:42 -0700

On Oct 26, 2009, at 21:18, Jerry Krinock wrote:

But this answer is not as plausible if the user makes the move using drag-drop instead of cut-paste. (Drag-drop is not implemented in DepartmentAndEmployees, but it is common in real apps.) Clearly, the user has now performed only one operation, and might rightfully expect it to be undoable with a single Undo.

Actually, you're Doing It Wrong™. Look at:

	http://developer.apple.com/mac/library/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGDragDrop/XHIGDragDrop.html#//apple_ref/doc/uid/TP30000364-TPXREF30

Especially:

"The principle driving these drag-and-drop guidelines is to prevent the user from accidental data loss. Because an Undo command in the destination application does not trigger an Undo in the source application, moving data across applications may result in potential data loss."

Your drag is from one container to another, and should be a copy- paste, not a cut-paste.


Now, if you want to argue that *your* application should play by different rules, I won't argue, but you're going to have to do some heavy lifting to solve the inherent 2-document undo problem.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Core Data: Undoing Cut-Paste, Drag-Drop between documents (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: first responder being clobbered
  • Next by Date: Cocoa replacement for Carbon CompositeIconRef() for Snow Leopard 64-bit apps?
  • Previous by thread: Core Data: Undoing Cut-Paste, Drag-Drop between documents
  • Next by thread: re: Core Data: Undoing Cut-Paste, Drag-Drop between documents
  • Index(es):
    • Date
    • Thread