Re: NSTableView and dragging cursor
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