Re: Register a Drag destination for ANYTHING... mars-alien-spaceship included
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