Re: Dragging an item to the Dock - HELP
Re: Dragging an item to the Dock - HELP
- Subject: Re: Dragging an item to the Dock - HELP
- From: Brian Webster <email@hidden>
- Date: Wed, 19 Sep 2001 12:20:24 -0500
On Wednesday, September 19, 2001, at 12:15 AM, cocoa-dev-
email@hidden wrote:
My app has a problem dragging Applications to the Dock. As it
is now, I
can drag any item to the right hand side of the doc (where the
documents
and folders go), but I can't drag an Application to the left hand side.
When I do drag an Application to the right side, it works, but the
Application jumps to the left side of the dock.
The same thing seems to happen when I tried dragging an app from
Project Builder to the dock. My guess is that it's a bug in the
dock.
I also can't drag items to the Trash Can. The trash can
highlights, but
when the item is dropped, the file does not move to the trash. Is my
app responsible for the move?
Yes, your app is responsible for the move. To process a drag to
the trash, implement the draggedImage:endedAt:operation: method
in your dragging source. If the file is dragged to the Trash,
the operation argument will be NSDragOperationDelete. You can
use NSWorkspace's
performFileOperation:source:destination:files:tag: method to
move the file(s) to the trash.
--
Brian Webster
email@hidden
http://homepage.mac.com/~bwebster