Re: Programmatically putting attributed string RTF on the pasteboard
Re: Programmatically putting attributed string RTF on the pasteboard
- Subject: Re: Programmatically putting attributed string RTF on the pasteboard
- From: Ken Thomases <email@hidden>
- Date: Wed, 11 Mar 2015 09:57:53 -0500
On Mar 11, 2015, at 6:18 AM, Charles Jenkins <email@hidden> wrote:
> Thank you, Ken.
You're welcome.
> Would it work to use the writing options to specify that all the types are only promised?
I think so. The docs for -writableTypesForPasteboard: say that, _by default_, the data for the first type is put on the pasteboard immediately and the rest are promised. However, it then states that you can change that default behavior by overriding -writingOptionsForType:pasteboard:.
> CLIPPING_UTI must be the first type I specify so my app will receive the most faithful copy of the data;
That's not correct. The pasteboard reader (the app doing a paste operation) determines its preference for which data type is most useful to it. Your app could prefer the CLIPPING_UTI representation even if it's not the first type in the list.
Regards,
Ken
_______________________________________________
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