CocoaDev

Edit AllPages

Here is a simple example of how you can copy formatted text in an NSTextView to the clipboard/pasteboard. The default copy: method only copies plain text. –KevinWojniak


It’s a good idea to put as much data as possible on the pasteboard; for example, when putting RTF data there, why not put plain text? The more types of data you can generate, the easier is it to integrate with other applications. EnglaBenny