Re: Dragging of messages from Mail
Re: Dragging of messages from Mail
- Subject: Re: Dragging of messages from Mail
- From: email@hidden (Heinrich Giesen)
- Date: Wed, 19 Jan 2005 16:51:15 +0100
Hello,
On 19.01.2005, at 15:19, Vincent Coetzee wrote:
I would like to be able to drag and drop messages from Mail into
another app. I have tried registering for various flavours of items
with success, does anyone have any idea of the type of the item that is
dragged from mail and how to get at it ?
"various flavours of items" sounds very carbonish. You have to use types
in Cococa, if you really will register a view for something. Do you mean:
-registerForDraggedTypes: ? You need not do so. You can always ask the
pasteboard for datatypes and data, e.g.:
NSArray *types = [[
<x-tad-bigger>NSPasteboard pasteboardWithName:NSDragPboard]</x-tad-bigger> types];
In your case you will receive the answer that there is one and only one
data type on the pasteboard:
MV Super-secret message transfer pasteboard type
with zero bytes data on the pasteboard, i.e. no success in transmitting a mail.
As far as I know (IMHO) you cannot drag a mail from Mail.app into other apps.
If an address is dragged from mail, these types are on the
<x-tad-bigger>NSDragPboard:
</x-tad-bigger>AddressesPboardType
NSStringPboardType<x-tad-bigger>
</x-tad-bigger>NSVCardPboardType
NeXT plain ascii pasteboard type<x-tad-bigger>
</x-tad-bigger>Interesting, but no help for you.
BTW, sorry but I cannot resist: you could have gotten all these results if you
had used my simple app PBObserver :-)
--
Heinrich Giesen
email: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden