• 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: Wayne Pascoe <email@hidden>
  • Date: Wed, 10 May 2006 16:52:02 +0100


On 9 May 2006, at 18:15, Jerry Krinock wrote:

on 06/05/09 09:34, Wayne Pascoe at email@hidden wrote:

What I'm really stuck on right now, is that I can't work out what the
NSTableView equivalent of registerForDraggedTypes would be.

There is no equivalent. Send message -registerForDraggedTypes to your NSTableView. This can be done in -awakeFromNib.


Stupid question, but how do I do this?

I've looked at http://www.corbinstreehouse.com/blog/?p=21 but I don't quite understand what is meant by "Here, I’ll assume you have a TableView with your source code controller class set as the delegate."

I am assuming that somehow, I have to set my AppDelegate as the delegate for the TableView, but I don't know how to do this.

Should I be subclassing NSTableView and instantiating this ? Is this how I would send messages to a TableView ? At the moment I only have an instance for the window that the TableView is in.

--
Wayne Pascoe    (gpg --keyserver www.co.uk.pgp.net --recv-keys 79A7C870)
Doing a linear scan over an associative array
is like trying to club someone to death with a
loaded Uzi. - Larry Wall

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: Nick Zitzmann <email@hidden>
References: 
 >Re: Making an NSTableView accept drag operations (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Why does NSImageView Mask the Drop Zone of a Subview
  • Next by Date: finding TableColum during NSTableView selection ?
  • Previous by thread: Re: Making an NSTableView accept drag operations
  • Next by thread: Re: Making an NSTableView accept drag operations
  • Index(es):
    • Date
    • Thread