Cocoa : How do I catch drag operations initiated from an IKBrowserView?

Posted by bucketmouse on Stack Overflow See other posts from Stack Overflow or by bucketmouse
Published on 2010-06-02T13:21:49Z Indexed on 2010/06/02 13:23 UTC
Read the original article Hit count: 250

Filed under:
|
|
|

So I've got an IKBrowserView all wired up and happily dragging my custom datatype (provided lazily via PasteboardItem) from one window to another, but now I'm interested in detecting when the user drops some data onto the trashcan. Cocoa's documentation says to check the return type of the drag operation itself, but how exactly do I do this with an IKBrowserView? Once I call imageBrowser:writeItemsAtIndexes:toPasteboard: I don't seem to get any notifications other than the request for the pasteboard contents, which doesn't provide a pointer to the drag operation that invoked it.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa