• 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: Ken Victor <email@hidden>
  • Date: Fri, 11 Nov 2005 17:39:33 -0800

At 8:24 PM -0500 11/11/05, Jim Correia wrote:
If I had a nickel for every throw away test app I've written... :-)

ditto! :-)


- (NSDragOperation)draggingSourceOperationMask

[...]

If the user is holding down a modifier key during the dragging session and the source does not prohibit modifier keys from affecting the drag operation (through its ignoreModifierKeysWhileDragging method), then the operating system combines the dragging operation value that corresponds to the modifier key (see the descriptions below) with the source's mask using the C bitwise AND operator.
So, if the source permits copy and move, and the option key is down, you'll see copy in the draggingSourceOperationMask when the option key is down.

my app is still small enough that i can use it as a test app for this. i see no difference in my table's data source method (tableView:validateDrop:proposedRow:proposedDropOperation:) based on the option key state and by examining [info draggingSourceOperationMask], regardless of whether or not my source allows copy or not. in fact, in the table's data source method, i always seed exactly what i specified for the source. note that my table does not implement ignoreModifierKeysWhileDragging as it apparantly defaults to NO.


so given all this, is there something wrong with examining the modifier keys of the current event in the data source's method?

ken
_______________________________________________
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


References: 
 >NSTableView and dragging cursor (From: Ken Victor <email@hidden>)
 >Re: NSTableView and dragging cursor (From: Ken Victor <email@hidden>)
 >Re: NSTableView and dragging cursor (From: Jim Correia <email@hidden>)
 >Re: NSTableView and dragging cursor (From: Ken Victor <email@hidden>)
 >Re: NSTableView and dragging cursor (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: NSTableView and dragging cursor
  • 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