• 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 to desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dragging to desktop


  • Subject: Re: dragging to desktop
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 01 Dec 2011 10:03:20 -0700

On Dec 1, 2011, at 8:19 AM, Torsten Curdt wrote:

> Now while I could create the file in
> namesOfPromisedFilesDroppedAtDestination: I am not sure whether that
> is the correct place. The docs state "After a drag operation is
> dropped, the dragging destination receives a performDragOperation:
> message." but I don't see that method getting called at all.
>
> Where is the correct place to create the files for the drop destination?

The namesOfPromisedFilesDroppedAtDestination: methods are the best place to start, but they have to return pretty quickly in order to avoid any chance of an event timeout happening, so if it will block and take a while to write, you could make the run loop call a method that will start writing after the method returns. You could use NSTimer or -performSelector:withObject:afterDelay: or a similar method.

> And will this also work when sandbox'ed?


I doubt it.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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

  • Follow-Ups:
    • Re: dragging to desktop
      • From: Conrad Shultz <email@hidden>
References: 
 >dragging to desktop (From: Torsten Curdt <email@hidden>)

  • Prev by Date: dragging to desktop
  • Next by Date: Re: How to force WebView to use a separate NSHTTPCookieStorage ?
  • Previous by thread: dragging to desktop
  • Next by thread: Re: dragging to desktop
  • Index(es):
    • Date
    • Thread