• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Making an NSTableView accept drag operations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Making an NSTableView accept drag operations
      • From: Wayne Pascoe <email@hidden>
References: 
 >Making an NSTableView accept drag operations (From: Wayne Pascoe <email@hidden>)

  • Prev by Date: Re: Making an NSTableView accept drag operations
  • Next by Date: NSOutlineView expands column width
  • Previous by thread: Re: Making an NSTableView accept drag operations
  • Next by thread: Re: Making an NSTableView accept drag operations
  • Index(es):
    • Date
    • Thread