• 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: option-drag with only one row?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView: option-drag with only one row?


  • Subject: NSTableView: option-drag with only one row?
  • From: "Ben Kennedy" <email@hidden>
  • Date: Thu, 21 Jul 2005 15:05:53 -0400
  • Organization: Zygoat Creative Technical Services

Hi all,

In my table view, you may rearrange rows by dragging
(NSDragOperationMove), or duplicate existing rows by option-dragging
(NSDragOperationCopy).  This works as designed.

Well, almost.  A user has pointed out to me that if there is only one
row in the table, it is impossible to option-drag to initiate a copy (so
as to create a second row).  During the regular dragging-to-rearrange
case, this makes sense, since there's no reasonable way to re-order a
single item.  However, tableView:vali
dateDrop:proposedRow:proposedDropOperation: never gets called, so there
is no opportunity to return a NSDragOperationCopy.

Am I overlooking something, or is this a design deficiency in NSTableView?

thanks,

-ben

--
Ben Kennedy, chief magician
zygoat creative technical services
613-228-3392 | 1-866-466-4628
http://www.zygoat.ca


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTableView: option-drag with only one row?
      • From: "Ben Kennedy" <email@hidden>
  • Prev by Date: Re: Strange issue when converting from hex to float
  • Next by Date: Re: Strange issue when converting from hex to float
  • Previous by thread: flipping the y-axis of an nsimage
  • Next by thread: Re: NSTableView: option-drag with only one row?
  • Index(es):
    • Date
    • Thread