• 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: Programmatically putting attributed string RTF on the pasteboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Programmatically putting attributed string RTF on the pasteboard (From: Charles Jenkins <email@hidden>)
 >Re: Programmatically putting attributed string RTF on the pasteboard (From: Ken Thomases <email@hidden>)
 >Re: Programmatically putting attributed string RTF on the pasteboard (From: Charles Jenkins <email@hidden>)

  • Prev by Date: Re: NSRunningApplication executableURL issue in Swift
  • Next by Date: Re: NSRunningApplication executableURL issue in Swift
  • Previous by thread: Re: Programmatically putting attributed string RTF on the pasteboard
  • Next by thread: Cocoa GUI app getting slower on MacPro or MacMini when disconnecting all screens
  • Index(es):
    • Date
    • Thread