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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to