views:

21

answers:

2

It's not clear to me how to do drag&drop to Finder with dragPromisedFilesOfTypes:fromRect:source:slideBack:event: (NSCollectionView)

I call the above method from mouseDown:, but(NSArray *)namesOfPromisedFilesDroppedAtDestination:(NSURL *)dropDestination isn't called at all.

Any ideas how this should work (MacOSX 10.6, project compiled for 10.5, 64bit)?

Thanks!

A: 

Have you already looked at the Drag and Drop Programming Topics? This whole book is on drag & drop, and it has a section specifically on file promises.

http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/DragandDrop/Tasks/DraggingFiles.html#//apple_ref/doc/uid/20001288-102943

Alex Martini
beeci
That's very strange... Sorry I couldn't be more help troubleshooting -- I haven't really done much work in this area. Looks like you've found a solution though.
Alex Martini
A: 

I had missed one method implementation: (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)isLocal. This solved the issue.

beeci