views:

27

answers:

1

I like the way Kaleidescope does it in its "Text Scope". Anyone know how they did it or what they used? NSTableView, NSTextView?

+2  A: 

The Blame view in Versions (also made by Sofa) uses an NSTableView. I'd guess that they're doing the same thing here. Create an NSTableView with a column for the line numbers, a column for the code, use a monospaced font and tweak the formatting. That will get you pretty close to what they're doing there.

Reed Olsen
awesome. that was my suspicion. Thanks!
Benny Wong