NOT Drag and Drop onto the Desktop
NOT Drag and Drop onto the Desktop
- Subject: NOT Drag and Drop onto the Desktop
- From: Don McConnell <email@hidden>
- Date: Sun, 9 Dec 2001 17:01:18 -0600
Hello ...
How do I tell my app not to allow an item to be dropped onto the
Desktop (or any Finder window)?
I've tried this in the dragging source:
- (unsigned int) draggingSourceOperationMaskForLocal:(BOOL)destInApp
{
if ( destInApp )
return NSDragOperationGeneric;
else
return NSDragOperationNone;
}
but I'm still able to drop cards from my Solitaire game into the Finder
(as empty clippings) without my game realizing that this is a problem.
Dropping onto windows from a variety of other applications doesn't work
(which is a good thing), but I'm not sure if the other app is rejecting
the drop or my app is cancelling the drop on its own.
So: How do I keep the user from dragging stuff out of my game's window?
Thanks,
Don