• 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: Shawn Erickson <email@hidden>
  • Date: Fri, 11 Nov 2005 20:38:04 -0800


On Nov 11, 2005, at 6:16 PM, Ken Victor wrote:

it works as jim says it should. my problem was as follows:

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

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

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

doesn't work!

It is a bit field so likely best to work with it as such...

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

....or just...

BOOL isCopy = ([info draggingSourceOperationMask] & NSDragOperationCopy);

-Shawn
_______________________________________________
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: Re: how to count NSThreads and NSTasks ?
  • 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