Dealing with formatted Text in NSPasteboard

Hello
I have released my first little utility in the Mac App Store (smartReact), one of the functionalities is a clipboard manager (history)… but currently only capable of handle plain text, no formatted text.

Is there any good documentation on how to handle formatted text in NSPasteboard? What I am looking for are things like copy text e.g. from a Pages document and paste it into another, maintaining the format.

Haven’t found too much on the topic so far… would be grateful for any directions.

thx

Hi @dpiol,
You are currently using the string type, what you need to use is a custom type or HTML type. The other options available can be found in the documentation at Apple Developer Documentation

cheers,

gr8! thanks for the help.

This topic was automatically closed after 166 days. New replies are no longer allowed.