• 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 and Drag and Drop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView and Drag and Drop


  • Subject: NSTableView and Drag and Drop
  • From: Buzz Andersen <email@hidden>
  • Date: Fri, 02 Aug 2002 08:15:43 -0600

Hi,
I am currently trying to build an application in which users can drag a row
in a NSTableView to the Finder, and have a file represented by that row
copied to the drag destination. This functionality is working fine, except
for one thing: I must always double click the row in order to have it drag
successfully. If I just drag horizontally, nothing happens. If I drag
vertically, the NSTableView simply selects other rows as I drag.

I have "Allows multiple selection" unchecked in Interface Builder. I have
also tried putting the following in my awakeFromNib:

[tableView setVerticalMotionCanBeginDrag: YES];

The only thing that seems to help is if I override mouseClicked, but then
the highlighting doesn't show up on the selected row.

Any suggestions would be greatly appreciated!

Thanks...

--
Buzz Andersen
email: email@hidden
web: http://www.scifihifi.com
_______________________________________________
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: Re: NSBox unclickable
  • Next by Date: Re: FTP with Cocoa
  • Previous by thread: Re: Re[3]: InfoPlist.strings
  • Next by thread: Re: Accessor methods and (auto)release <Memory trail>
  • Index(es):
    • Date
    • Thread