drag and drop promise HFS and NSOutlineView
drag and drop promise HFS and NSOutlineView
- Subject: drag and drop promise HFS and NSOutlineView
- From: olivier <email@hidden>
- Date: Mon, 20 Jan 2003 17:14:56 -0600
I implemented drag and drop of promiseHFS out of an NSOutlineView by
calling
[outlineView dragPromisedFilesOfTypes: extensions
fromRect: NSMakeRect
(theLocation.x - 16, theLocation.y + 16, 0, 0)
//-16, +16 to have the mouse in the middle of the icon
source: outlineView
slideBack: YES
event: [[NSApplication
sharedApplication] currentEvent]];
in the writeItemToPasteboard call of the data source of my outlineView.
At the end of the function i return no so that no other drag opetation
is done.
it works fine except that my window then has a strange behaviour, if i
send it to the background and put the window of another app on top of
it, clicking the icon of my app in the dock will not bring the window
forward, i then have to click in the title bar to get it to appear. Or
if i leave the window to the front and then click in another row of the
outlineView it behaves as if i had selected all the rows in between the
dragged row and the clicked row.
Any idea, anybody saw that before.
Thanks, olivier
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.