• 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
Dragging NSOutlineView rows by different columns (was Dragging custom NSCells in NSOutlineView)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dragging NSOutlineView rows by different columns (was Dragging custom NSCells in NSOutlineView)


  • Subject: Dragging NSOutlineView rows by different columns (was Dragging custom NSCells in NSOutlineView)
  • From: Pete Yandell <email@hidden>
  • Date: Thu, 29 May 2003 11:55:16 +1000

Turns out that my original question was barking up the wrong tree. My problem has nothing to do with the cell classes being used.

You can only drag rows in an outline view by grabbing them in the column set by setOutlineTableColumn: which is the first column by default. Anybody know of a work around that lets you drag by other columns?

On Wednesday, May 28, 2003, at 06:47 PM, Pete Yandell wrote:

I have a custom NSCell subclass that I use for drawing a column in an NSOutlineView. When I try to drag items in the outline view starting the drag on that column, I get selection behaviour rather than dragging. Starting my drag in the other columns works just fine.

Is there something special I need to do in my cell to support dragging in outline views? Currently the only method I'm implementing is drawWithFrame:inView:
_______________________________________________
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: 
 >Dragging custom NSCells in NSOutlineView (From: Pete Yandell <email@hidden>)

  • Prev by Date: Re: Recording the time a thread took to execute
  • Next by Date: Compositing several NSImages into one
  • Previous by thread: Dragging custom NSCells in NSOutlineView
  • Next by thread: Non-fatal errors in frameworks - how should they be noted?
  • Index(es):
    • Date
    • Thread