Re: NSBrowser drag question
Re: NSBrowser drag question
- Subject: Re: NSBrowser drag question
- From: "John O'Keeffe" <email@hidden>
- Date: Mon, 28 May 2001 15:20:50 +1000
Thanks to all who responded on this one. I did assume that drag and
drop in an NSBrowser would be built in, however as I'm fairly new at
cocoa, I'll be taking Greg Betzel's solution/workaround:
"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."
This actually suits my application as I'd like the user to be able to
make further modifications and the 'well' will allow just that.
The other solutions are a bit out of my league just for the moment and
in terms of this project - but methods to keep in mind (Looking forward
to that cocoa book).
John O'Keeffe
Australian Film Commission
On Friday, May 25, 2001, at 07:33 AM, Christopher Lloyd wrote:
NSBrowser uses a group of NSMatrix's to display and manipulate the
columns. The best place to start is to subclass NSMatrix, use the
NSBrowser method to set the matrix class it uses to your subclass and
then implement the drag&drop functionality in your matrix subclass.
What you want to do is entirely possible, just a little tedious.
Hope this helps,
Chris
At 06:45 PM 5/23/2001 +1000, you 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.