Re: drag and drop workarounds? SOLVED
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