NSTextView: two column presentation

retrotron

thinking is design
I'd like to present some text in two columns in a TextView. Something like:


-----------------------------------------
Text here | Text here
Text here | Text here
Text here | Text here
-----------------------------------------


Can anybody give me a simple description of how I should do this (I'm a Cocoa newbie)?
 
The simplest way is to just use tab-dated (i.e the \t character) but the other way is to subclass like crazy and use NSLayoutManager, but I have no experience doing that. Search around cocoadev.com for some code/examples.
 
Back
Top