• 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
Re: NSTableView and dragging cursor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView and dragging cursor


  • Subject: Re: NSTableView and dragging cursor
  • From: Jim Correia <email@hidden>
  • Date: Fri, 11 Nov 2005 20:01:19 -0500

On Nov 11, 2005, at 7:13 PM, Ken Victor wrote:

for the archives (i stumbled across this right after my posting):

in the table source's tableView:validateDrop:proposedRow:proposedDropOperation: method, you can check the option key via:

	(([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask) != 0)

however, i'm still a little curious as to why this behavior doesn't happen automatically...

It doesn't happen automatically because the drag source may not permit copies, or the destination may not know how to make a copy (or it may not make sense in the given context.)


Look at the draggingSourceOperationMask in the dragging info. If it contains NSDragOperationCopy and all other conditions are appropriate for making a copy, return NSDragOperationCopy.

Jim
_______________________________________________
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 and dragging cursor
      • From: Ken Victor <email@hidden>
References: 
 >NSTableView and dragging cursor (From: Ken Victor <email@hidden>)
 >Re: NSTableView and dragging cursor (From: Ken Victor <email@hidden>)

  • Prev by Date: Re: mysterious memory leak in cocoa ? (FOLLOWUP)
  • Next by Date: Re: NSTableView and dragging cursor
  • Previous by thread: Re: NSTableView and dragging cursor
  • Next by thread: Re: NSTableView and dragging cursor
  • Index(es):
    • Date
    • Thread