• 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: More Table View D&D - Suppressing drop on individual rows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More Table View D&D - Suppressing drop on individual rows


  • Subject: Re: More Table View D&D - Suppressing drop on individual rows
  • From: Scott Anguish <email@hidden>
  • Date: Thu, 30 May 2002 01:55:24 -0400

Sure it is possible..

What I've done in the past is subclass NSScrollView to accept the drops, and then have it handle the inserts into the tableview...

the trick is to make the NSTableView that you create in IB use the FileAcceptingScrollView by swiching the instances tab view from icons to the outline mode.. and the when you see the NSScrollView (NSTableView) in the window, select that and then hit cmd-5 to bring up the class inspector so you can change it to the FileAcceptingScrollView

The source for ColdCompress uses this technique and is available from

http://homepage.mac.com/sanguish/ColdCompress-X.src.tgz

(it'll be interesting to see if it gets clobbered by the new mac.com usage


On Wednesday, May 29, 2002, at 11:52 PM, Sam Goldman wrote:

First of all, thanks Edwin for the previous info. I also needed to register
the table views for the pasteboard types and forgot to do that.

Now I need to tweak one thing: I don't want the drag to recognize individual
rows and the spaces in between rows as drag destinations. I just want a drag
onto the table view as a whole. Is that possible?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >More Table View D&D - Suppressing drop on individual rows (From: Sam Goldman <email@hidden>)

  • Prev by Date: EncodeObject & DecodeObject Revisted
  • Next by Date: Button Colours
  • Previous by thread: More Table View D&D - Suppressing drop on individual rows
  • Next by thread: EncodeObject & DecodeObject Revisted
  • Index(es):
    • Date
    • Thread