• 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
dragging to trash folder problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dragging to trash folder problems


  • Subject: dragging to trash folder problems
  • From: "email@hidden" <email@hidden>
  • Date: Sat, 26 Dec 2009 14:24:06 -0800

i've implemented -draggedImage:endedAt:operation: and i check if the operation is an NSDragOperationDelete to detect drags to the trash, and if so, i then appropriately delete the dragged object from my app's document.

this all works fine as long as the user drags the object to the trash icon in the dock.

however, if the user drags an object to the trash icon, and then subsequently drags to and drops on the (popped) opened trash folder, i no longer receive the NSDragOperationDelete operation in -draggedImage:endedAt:operation: and hence cannot detect that this should actually be a delete and the opened trash folder remains open on the desktop.

not only that, but if the user drops in the (pop) opened trash folder, since i don't perform the delete, the user can again drag the same object to the trash icon in the dock and this opens a second trash folder. this can be repeated many times, resulting in many opened trash folders on the desktop.

my questions:
1) how can i detect that the user dropped into a (popped) opened trash folder?
2) is the behavior of (popping) open multiple instances of the trash folder a (known) bug?


this is on leopard 10.5.8.

ken
_______________________________________________

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


  • Prev by Date: Re: Dynamically update drawRect
  • Next by Date: Re: Source List Indentation Drawing Issue
  • Previous by thread: Re: Dynamically update drawRect
  • Next by thread: Re: dragging to trash folder problems
  • Index(es):
    • Date
    • Thread