Re: Reading text attachments from pasteboard into NSTextView
Re: Reading text attachments from pasteboard into NSTextView
- Subject: Re: Reading text attachments from pasteboard into NSTextView
- From: Douglas Davidson <email@hidden>
- Date: Wed, 23 Jan 2008 18:00:04 -0800
On Jan 23, 2008, at 7:33 AM, Kai BrĂ¼ning wrote:
NSTextView seems to have broad support for copying text attachments
to pasteboards in whatever custom format is desired:
- textView:writablePasteboardTypesForCell:atIndex: delegate method
- textView:writeCell:atIndex:toPasteboard:type: delegate method
But I can't find similar support for reading from a pasteboard. From
what I have seen, the only method seems to be to put an attributed
string with the text attachment(s) in it on the pastboard. While
this is possible, I would rather like to convert some custom format
into a text attachment the moment it is read from the pasteboard.
You would do this with the standard mechanisms for extending
NSTextView pasteboard reading--see the header file comments on
"Pasteboard support", notably for -readablePasteboardTypes and -
readSelectionFromPasteboard:type:.
Douglas Davidson
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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