• 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
Making an NSTableView accept drag operations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Making an NSTableView accept drag operations
      • From: Jerry Krinock <email@hidden>
    • Re: Making an NSTableView accept drag operations
      • From: Ryan Britton <email@hidden>
    • Re: Making an NSTableView accept drag operations
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: CoreData - placing "references" to objects on the general pasteboard
  • Next by Date: Re: Making an NSTableView accept drag operations
  • Previous by thread: Job opening - NovaMind Software: Brisbane, Australia
  • Next by thread: Re: Making an NSTableView accept drag operations
  • Index(es):
    • Date
    • Thread