Re: Making an NSTableView accept drag operations
Re: Making an NSTableView accept drag operations
- Subject: Re: Making an NSTableView accept drag operations
- From: Ryan Britton <email@hidden>
- Date: Tue, 9 May 2006 09:59:46 -0700
Take a look at this:
http://www.corbinstreehouse.com/blog/?p=21
On May 9, 2006, at 9:34 AM, Wayne Pascoe wrote:
Hi all,
Could someone please point me at a tutorial that explains how to
make an NSTableView a drag destination.
I've gone through the tutorial at http://cocoadevcentral.com/
articles/000056.php. I'm now trying to drag a list of files to an
NSTableView and create a new row for each file in the list.
From modifying the tutorial, I can see that I will receive an array
of file paths. I am guessing that I will then need to iterate over
the array, creating a new row for each file path and populating the
first field in my table with that string.
What I'm really stuck on right now, is that I can't work out what
the NSTableView equivalent of registerForDraggedTypes would be.
I think I should be looking at setDropRow but I can't work out how
to use this.
Any pointers to documentation / sample code would be much
appreciated as always :D
--
Wayne Pascoe (gpg --keyserver www.co.uk.pgp.net --recv-keys
79A7C870)
There's optimism...
and then there's stupidity!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden