• 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: drag and drop workarounds? SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drag and drop workarounds? SOLVED


  • Subject: Re: drag and drop workarounds? SOLVED
  • From: Christoffer Lerno <email@hidden>
  • Date: Sun, 12 Dec 2004 12:00:18 +0100

A 10.3-dependent solution worked well:

Use kqueue (or a cocoa wrapper for it - I used Uli Kusterers UKKQueue) to monitor the source folder.

draggedImage:endedAt: deals with the special case of dragging something to the trash. In other situations however, a kqueue notification signals to the app that it should synchronize it's data with the folder.


/C

On Dec 10, 2004, at 00:46, Christoffer Lerno wrote:

I want to sync a list of files that can be dragged into the Finder and other applications.

The problem is if I drag the files into an application like the Finder that occasionally delays move-operations, and sends draggedImage:endedAt:operation before the actual operation is finished.

An example: drag a file into a folder which already has a file of the same name. The Finder will immediately send a draggedImage:endedAt:operation, but the file will not be moved quite yet. Instead the Finder launches a dialog to allow cancelling the move or replacing the original file.

_______________________________________________ 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
References: 
 >drag and drop workarounds? (From: Christoffer Lerno <email@hidden>)

  • Prev by Date: Re: loading a NSView packaged in a separate .nib
  • Next by Date: Re: NSAttributedString advice
  • Previous by thread: drag and drop workarounds?
  • Next by thread: drag and drop workarounds?
  • Index(es):
    • Date
    • Thread