Re: NSBrowser drag question
Re: NSBrowser drag question
- Subject: Re: NSBrowser drag question
- From: Greg Betzel <email@hidden>
- Date: Wed, 23 May 2001 20:17:54 -0500
On Wednesday, May 23, 2001, at 03:45 am, John O'Keeffe wrote:
I have a browser that my Objective-C cocoa application populates with a
series of NSStrings (ie essentially it generates a list of possible
words based on a start word). I'd like the user of the program to be
able to select a word in the list and drag it to another application
like stickies. Is this possible and if so, could someone point be into
the right direction.
NSBrowser doesn't support this sort of thing without effort (if at can
be done all; I couldn't make it work at least). Maybe someone here can
prove me wrong. :)
Would an NSOutlineView work instead of a browser? It has support
built-in to make item dragging a lot easier. Take a look in the header
files; I'm not sure this is fully documented.
Another option would be to have a selection field or "well" adjacent to
the browser; i.e. the user would make the selection in the browser &
then drag from the field. This method is kinda clumsy & more of a
workaround than a solution, but it is one way if nothing else works.
Hope this helps,
Greg Betzel