Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NOT Drag and Drop onto the Desktop



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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.