objective c - How to be notified in OS X when a drag operation *starts* anywhere? -
i'm wondering if there's way have application notified when drag-and-drop operation starts anywhere on screen, if don't have active window there.
i've looked normal drag-and-drop apis, haven't spotted this. nsdraggingdestination protocol along -[nswindow/nsview registerfordraggedtypes:]
method allows notice when dragging , crosses on window, i'd notice when dragging operation started anywhere on screen.
any tips on how go this? there standard cocoa api it, or there private api / kind of dirty hack information?
thanks in advance :)
take @ nsevent’s +addglobalmonitorforeventsmatchingmask:handler:. i’m not sure if can track mouse dragging it’s possible track mouse button up/down events.
Comments
Post a Comment