Making an NSTableView accept drag operations
Making an NSTableView accept drag operations
- Subject: Making an NSTableView accept drag operations
- From: Wayne Pascoe <email@hidden>
- Date: Tue, 9 May 2006 17:34:24 +0100
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!
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
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