objective c - How can I detect a dragged window from another? -


in application want dynamically create windows (nswindows) , have special window (which nswindow , call dump space) can drag other windows closing them.

basically dump space should detect when "drop" window there can trigger action release , close window.

is there on cocoa drag , drop model use? if not i'd know workaround in order simulate actions.

in dump space class implement nsdraggingdestination protocol has several messages handle drag operations. in performdragoperation: can handle window. recommend implement nsdraggingsource in class starts dragging window on mousedown: or mousemoved:. way can define own pasteboard datatype dragging windows. can used in dump space see dropped on , trigger window processing. there's relatively complicated example required in example.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -