• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NOT Drag and Drop onto the Desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: HTML Notification
  • Next by Date: adding MessageText in Open/Save Panel
  • Previous by thread: Re: Sheets in java
  • Next by thread: Re: NOT Drag and Drop onto the Desktop
  • Index(es):
    • Date
    • Thread