Re: NOT Drag and Drop onto the Desktop
Re: NOT Drag and Drop onto the Desktop
- Subject: Re: NOT Drag and Drop onto the Desktop
- From: David Remahl <email@hidden>
- Date: Mon, 10 Dec 2001 18:59:11 +0100
>
On Monday, December 10, 2001, at 12:14 AM, cocoa-dev-
>
email@hidden wrote:
>
>
> So: How do I keep the user from dragging stuff out of my game's window?
>
>
What drag types are you registering on the pasteboard? If you
>
only register private types (i.e. ones not defined in the Cocoa
>
framework), then no drops into the Finder should occur.
>
In the drag source, implement
- (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)flag
{
BOOL local = flag;
if(local)
return NSDragOperationMove; //or whatever
else
return NSDragOperationNone; //or whatever
}