• 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
NSTableView selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView selection


  • Subject: NSTableView selection
  • From: Elisabeth Freeman <email@hidden>
  • Date: Mon, 10 Nov 2003 21:40:10 -0800

Hello,
I'm having problems figuring out how to correctly implement drag and drop on a table view because of the way the table section works.

I am using a selectedRowEnumerator to look at all objects that are being dragged - that is all selected objects. However, it is possible to drag an item in the table without selecting it because the mouse-down action does not actually select the row. As has been previously pointed out, perhaps this is correct behavior, but I find it odd because the default behavior of the OutlineView is to select on a mouse-down. So why is the selection behavior different for these two objects?

In addition, it makes it very difficult to tell what is being dragged, because you can't used the selectedRowEnumerator to figure out what rows are selected because they aren't selected! (Well in the case where there's more than one, obviously you have to select the rows to drag multiple rows, but in the case of one row, you don't).

So...

1) why is the behavior different for NSTableView and NSOutlineView?
2) is there a way to force a selection on a mouse down in NSTableView -or-
3) is there a way to tell what row is being dragged without actually selecting it?

Thank you!!!!!

Elisabeth
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSTableView selection
      • From: Elisabeth Freeman <email@hidden>
    • Re: NSTableView selection
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: itunes for windows HOWTO ???
  • Next by Date: Re: NSTableView selection
  • Previous by thread: pasteboard access in an ssh session
  • Next by thread: Re: NSTableView selection
  • Index(es):
    • Date
    • Thread