• 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
Select and drag in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Select and drag in NSTableView


  • Subject: Select and drag in NSTableView
  • From: Drew McCormack <email@hidden>
  • Date: Sat, 6 Apr 2002 11:25:10 +0200

I have implemented drag-and-drop reordering of rows in an NSTableView. This works fine, except that the selected row indexes remain unchanged, which seems a bit strange for the user. I would prefer that as soon as a mouse down occurred, the row would be selected, and remain selected, even after the drag and drop had occurred.

The problem I have is that the action seems to be sent on the mouse-up, not the mouse down, so I can't select the row in the action method. Does this mean I need to make a subclass of NSTableView, and override mouse-down, or is there a simpler way?

Drew

... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
Dr. Drew McCormack
Trade Strategist (www.trade-strategist.com)
Trading simulation software for Mac OS X
_______________________________________________
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.
  • Prev by Date: [OT](ish) - Short Job in London
  • Next by Date: Re: How to make links clickable in an NSTextView
  • Previous by thread: [OT](ish) - Short Job in London
  • Next by thread: AppleScript in Cocoa code
  • Index(es):
    • Date
    • Thread