Re: dragging and dropping into NSBrowser
Re: dragging and dropping into NSBrowser
- Subject: Re: dragging and dropping into NSBrowser
- From: email@hidden
- Date: Fri, 11 Jan 2002 16:50:38 -0800
you'll have to subclass NSMatrix and write your own handling for
drag/drop
e.g. override mouseDragged and if you decide you want to drag, call all
the dnd stuff, like declareTypes, setPropertyList, and
dragImage:at:offset:event:pasteboard:source:slideBack...
once you have this subclass created, attach it to the browser with
setMatrixClass:
it's not pretty... but you can get it to work.
On Friday, January 11, 2002, at 02:04 PM, Vinay Venkatesh wrote:
out of the box NSBrowser doesn't support drag and drop that i can see
i was wondering if anyone has sample code of an NSBrowser or subclass
that does this. I'm just wondering how this woujld be implemented and
what not.