• 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: Uli Kusterer <email@hidden>
  • Date: Sat, 12 Nov 2005 13:11:56 +0100

Am 12.11.2005 um 03:16 schrieb Ken Victor:
BOOL isCopy = ([info draggingSourceOperationMask] == NSDragOperationCopy);

works fine (as jim said it would). however,

BOOL isCopy = (([info draggingSourceOperationMask] == NSDragOperationCopy) != 0);

Been ages since I did DnD, and I don't have the docs here to check right now, but since this is a mask, shouldn't you be doing:


([info draggingSourceOperationMask] & NSDragOperationCopy) == NSDragOperationCopy

??? Otherwise, if several actions are possible, you'll get no-copy behaviour.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de


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

  • Prev by Date: Linking error with C++ framework and GCC 4.0.1
  • Next by Date: Re: Problem with dataWithPDFInsideRect
  • Previous by thread: Re: NSTableView and dragging cursor
  • Next by thread: Re: NSTableView and dragging cursor
  • Index(es):
    • Date
    • Thread