Dragging file promises
Christiaan Hofman <[email protected]> Sat, 6 Oct 2012 13:24:30 +0200
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
I am trying to figure out how to drag file promises from views such as = NSTableView. Before 10.6, I knew how to do this using = NSFilesPromisePboardType and the = namesOfPromisedFilesDroppedAtDestination: delegate methods. The docs now = say I should use (NSString *)kPasteboardTypeFileURLPromise instead of = NSFilesPromisePboardType. However, I cannot find anything in the docs, = no sample code or whatever, that uses this. The only thing in the docs = still refers to NSFilesPromisePboardType, or uses = dragPromisedFilesOfType:..., which is not appropriate for standard = controls such as NSTableView (because that should use this implicitly = behind the scenes). Just replacing NSFilesPromisePboardType by = kPasteboardTypeFileURLPromise also does not work, the delegate method is = never called. So can anyone tell me how I do file promises in 10.6+ = using kPasteboardTypeFileURLPromise? thanks Christiaan