• 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: Dragging an item to the Dock - HELP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Forwarding and forwardInvocation
  • Next by Date: Services key equivalent question
  • Previous by thread: Dragging an item to the Dock - HELP
  • Next by thread: Scripting the "Mail' application to add attachments
  • Index(es):
    • Date
    • Thread