Modify Cocoa apps to support paste as plain text

Oct 07, '04 11:24:00AM

Contributed by: ahknight

Mac Geekery posted a great hack on how to edit most any Cocoa program to support the ability to paste as plain text (no fonts, no attributes, just the text). The example used is hacking iChat so that when you copy/paste from a web page in Safari, the text is readable on the other end, but there are myriad uses for this in other Mac programs.

It does require the Developer Tools, but it's a really simple change (just adding one menu item, and there's a walkthrough).

Comments (18)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20041004035342774