• 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: Cannot D&D from an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot D&D from an NSTableView


  • Subject: Re: Cannot D&D from an NSTableView
  • From: Conrad Shultz <email@hidden>
  • Date: Mon, 14 Nov 2011 16:15:17 -0800

On 11/14/11 3:45 PM, Koen van der Drift wrote:
> You were right. Implementing the custom cell, even though I only was
> calling drawFrameRect caused the D&D not to work.

Are you subclassing NSCell directly or using one of its subclasses?

Out of the box, NSTableView (or, rather, NSTableColumn) uses an
NSTextFieldCell, which importantly inherits from NSActionCell, which
itself adds lots of core functionality that we are used to (for example,
the target-action pattern).

It's possible that it also does some things behind the scenes to make
drag and drop work better.  So: what happens if you inherit from
NSActionCell?

--
Conrad Shultz

Synthetiq Solutions
www.synthetiqsolutions.com
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Cannot D&D from an NSTableView
      • From: Koen van der Drift <email@hidden>
References: 
 >Cannot D&D from an NSTableView (From: Koen van der Drift <email@hidden>)
 >Re: Cannot D&D from an NSTableView (From: Jens Alfke <email@hidden>)
 >Re: Cannot D&D from an NSTableView (From: Koen van der Drift <email@hidden>)
 >Re: Cannot D&D from an NSTableView (From: Graham Cox <email@hidden>)
 >Re: Cannot D&D from an NSTableView (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Re: Implementing Full Screen for 10.7 but app should also run on 10.6
  • Next by Date: Re: 2 itunesconnect questions
  • Previous by thread: Re: Cannot D&D from an NSTableView
  • Next by thread: Re: Cannot D&D from an NSTableView
  • Index(es):
    • Date
    • Thread