drag and drop in nsbrowser (issues with matrix and mouseDragged)
drag and drop in nsbrowser (issues with matrix and mouseDragged)
- Subject: drag and drop in nsbrowser (issues with matrix and mouseDragged)
- From: Josh Anon <email@hidden>
- Date: Wed, 14 Aug 2002 13:16:29 -0700
So someone else asked this here before a while ago, but without a good
answer, so I'll try again. I'm attempting to implement drag & drop in
a browser (custom cells, doesn't represent the file system, and all
that goodness), and the first thing I tried was to subclass NSBrowser
and implement the code there. While that mostly worked, I could only
drag from empty areas in the browser.
My next attempt has been to subclass NSMatrix, set the browser's
columns to be of that type, and do the drag work in my NSMatrix
subclass (subclass and not category because I'm overriding mouseDragged
and adding a couple of variables to the matrix to support the drag).
That's all good, but unfortunately, something is eating the
mouseDragged: event (as has been mentioned here before, it seems to be
the NSMatrix), as my matrix subclass gets the mouseDown: events, but
not the mouseDragged:. Any ideas? Is there a better way to do drag
and drop w/ a browser?
Thanks,
Josh
_______________________________________________
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.