• 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: Register a Drag destination for ANYTHING... mars-alien-spaceship included
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Register a Drag destination for ANYTHING... mars-alien-spaceship included


  • Subject: Re: Register a Drag destination for ANYTHING... mars-alien-spaceship included
  • From: Michael Jurewitz <email@hidden>
  • Date: Sat, 10 Feb 2007 12:00:21 -0800


On Feb 10, 2007, at 7:35 AM, Giovanni Donelli wrote:

Dear Folks,

I am writing an App that plays with dragging. I don't care what it is
being dragged whether it is a file, an iTunes playlist.. or an alien
spaceship... I just need to respond to a drag operation of any kind.

Is there a way to do that?
is there a way to register a Drag destination of ANYTHING???


Hi Giovanni,

There is no way to register for everything under the sun in a drag operation. The reason for this is that applications often declare their own custom types to handle dragging that will only occur between different windows within the itself application (I believe Mail is one that behaves like this). To get a better feeling for what types are placed on the pasteboard you should check out / Developer/Applications/Utilities/Built Examples/Clipboard Viewer

When your application does register for the drag types that it supports, you could offer to be a destination for almost everything by declaring that you accept the types listed at: http:// developer.apple.com/documentation/Cocoa/Conceptual/CopyandPaste/ Articles/pbDataTypes.html#//apple_ref/doc/uid/20000429-BCIJIJAG

The rest of the guide has some very valuable information that I would recommend reviewing, as well.

-Michael Jurewitz

/*****************************************
Apple DTS Engineer
Cocoa - Core Data - Bindings

Save the Date.
WWDC 2007 | June 11-15, San Francisco
http://developer.apple.com/wwdc

email@hidden
*****************************************/

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Register a Drag destination for ANYTHING... mars-alien-spaceship included (From: "Giovanni Donelli" <email@hidden>)

  • Prev by Date: Re: About nswindow animation?
  • Next by Date: Re: how to use the "small icon menu" in the main menu bar?
  • Previous by thread: Register a Drag destination for ANYTHING... mars-alien-spaceship included
  • Next by thread: Enabled Binding on Controls
  • Index(es):
    • Date
    • Thread