Re: NSAttributedString with columns

2010-06-14 Thread Douglas Davidson
On Jun 14, 2010, at 7:29 AM, Kyle Sluder wrote: > On Jun 14, 2010, at 6:46 AM, Alexander Cohen wrote: > >> Hello, >> >> I would like to use an NSAttributed string in order to render a type of >> key/value 2 column display in a NSTextField. As of now, i'm using tabs >> between key's and value

Re: NSAttributedString with columns

2010-06-14 Thread Kyle Sluder
On Jun 14, 2010, at 6:46 AM, Alexander Cohen wrote: > Hello, > > I would like to use an NSAttributed string in order to render a type of > key/value 2 column display in a NSTextField. As of now, i'm using tabs > between key's and value's on each line but some values need to wrap to the > next

Re: NSAttributedString with columns

2010-06-14 Thread Paul Sanders
> I would like to use an NSAttributed string in order to render a type of > key/value 2 column display > in a NSTextField. As of now, i'm using tabs between key's and value's on each > line but some values > need to wrap to the next line and i would like them to wrap to the start of > value colu

Re: NSAttributedString with columns

2010-06-14 Thread Gideon King
Suggest you look at the "Using Text Tables" section of the "Text Layout Programming Guide for Cocoa". It shows how to use the NSTextTable, NSTextTableBlock etc. Looks promising for what you describe. Disclaimer: I haven't used it myself. HTH Gideon On 14/06/2010, at 11:46 PM, Alexander Cohen

Re: NSAttributedString with columns

2010-06-14 Thread Graham Cox
On 14/06/2010, at 11:46 PM, Alexander Cohen wrote: > Is this possible using attributes and an NSAttaributedString I believe it is - experiment with the various settings of NSMutableParagraphStyle, such as -headIndent and -firstLineHeadIndent. You need to make each line a separate paragraph.

NSAttributedString with columns

2010-06-14 Thread Alexander Cohen
Hello, I would like to use an NSAttributed string in order to render a type of key/value 2 column display in a NSTextField. As of now, i'm using tabs between key's and value's on each line but some values need to wrap to the next line and i would like them to wrap to the start of value column a