Re: How to delete table rows to delete by dragging them to trash in the dock
Re: How to delete table rows to delete by dragging them to trash in the dock
- Subject: Re: How to delete table rows to delete by dragging them to trash in the dock
- From: JanakiRam <email@hidden>
- Date: Wed, 9 Feb 2005 10:19:44 +0530
Hi,
can u tell me which method will be called when we a row of a table
on to the trash. Mine application will have the one file for each
student object created.
On Feb 09, 2005, at 2:56 AM, The Karl Adam wrote:
I don't think dragging an application table row to the Dock Trash is
the right action for deleting them. While it's good to have a
mouse-only action for the equivalent of 'delete', IMHO this is not the
way to do this.
As long as this isn't the only way to do it, nor the primary, it's
fine. The more ways to accomplish the same goal the better. If it
helps more users intuitively understand your app, the better.
The Trash in the dock is generally used for Finder-related items:
files, folders, mounted volumes, clippings (which act like files) etc
etc -- and note that whenever you drag something into the Dock trash,
you can double-click the trash and see it there (the one exception is
mounted volumes, and I think that action remains in OS X for
compatibility reasons). Your rows aren't Finder-related items, and
they
wouldn't appear in the Trash after you dragged them there.
This may be true but, when you drag CDs and Disk Images it changes for
them and disappears though leaving nothing in the trash.
I don't know of any other application that contains non-file objects
that can be dragged into the Dock Trash, and I think it's for the
above
reasons (and not due to implementation difficulty).
Almost all of Apple's Apps can do this. You can drag songs in iTunes
to the trash, you can drag buddies in iChat to the trash, and you can
probably drag items in iCal to the trash.
The goal is to carry on as many learned behaviors as possible. Some
users learn something and it becomes the hammer they use for all thier
problems. If dragging is the user's primary way of getting things
done, it's not at all odd they might expect this to work.
If you wanted to have drag-removal, you could create some sort of
trash
icon inside your application and drag the rows there. This is much
simpler since you control both the drag source and the drag
destination.
He could do this, and it might be more intuitive, but supporting drags
to the trash isn't hard, and the more ways to get something done, the
better as long as it doesn't begin to overwhelm the user.
-Karl
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden