Dejal

This site is designed to take advantage of CSS. If you are seeing this, CSS must not be available or enabled in your browser. Everything should still work, but won't be as pretty. :)

DSTextViewCategories

Cocoa categories to extend NSTextView, including attributes and selection utilities, convenience methods to append, get and set strings, attributed strings, and RTF data.

This code is compatible with Mac OS X 10.3 and later. Much of it dates from the pre-bindings etc days, so there may be better ways to do things now, but hopefully you will find some of these useful.

If you use them, I'd appreciate mention in your application credits or website, and let me know! If you have any improvements or bug fixes, I'd appreciate them, too.

Click on the .h and .m attachments to view the source code, or the .zip file to download them. Note: you can download all of the categories in one archive via the DSCategories page.

AttachmentSize
DSTextViewCategories.h2.8 KB
DSTextViewCategories.m8.16 KB
DSTextViewCategories.zip3.15 KB