Hello ...
How do I prevent the user from dragging an element out of a window and depositing it (as a clipping) on the Desktop or a Finder window?
I thought this method
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
- (unsigned int) draggingSourceOperationMaskForLocal

BOOL)destInAp p
{
if ( destInApp )
return NSDragOperationGeneric;
else
return NSDragOperationNone;
}
</font>[/code]
in the dragging source would do the trick (telling the dragging spirit to perform a "generic" drag if the candidate destination is in the app, and "no" drag otherwise), but it doesn't. I'm still able to drop my solitaire cards onto the Desktop without my application realizing that that's a problem.
What am I missing?
Thanks and regards,
DayLateDon