I have a Mac OS X application that implements the -(void)application openFiles: method to react to dragged files on the application icon.
I have a list of allowed filetypes in the document types section of my target info settings and the Finder indeed allows drags, but when a PDF is in the list of dragged items, my delegate method is called twice: one for all the elements without the PDF, and one for the PDF alone.
This of course makes it impossible for me to handle the situation properly.
Can anybody help me or explain what is happening? Thanks
I've seen this behavior in one of my apps (usually when dragging a whole bunch of files at one time). As I workaround, instead of opening the files directly from
application:openFiles:, I queue them up and open the queued files after a small delay. Something like the following: