• 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
Re: NOT Drag and Drop onto the Desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
}


References: 
 >Re: NOT Drag and Drop onto the Desktop (From: Brian Webster <email@hidden>)

  • Prev by Date: Re: logout and auto-login
  • Next by Date: Re: Damn sisters :-)
  • Previous by thread: Re: NOT Drag and Drop onto the Desktop
  • Next by thread: Re: NOT Drag and Drop onto the Desktop
  • Index(es):
    • Date
    • Thread