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