Re: Limiting number of characters per line in a NSTextView

2009-03-23 Thread Andrew Farmer
On 18 Mar 09, at 13:32, Martin Wierschin wrote: I want my NSTextView to show only 32 characters per line and the 33rd character should be shown at next line of textview. My NSTextView will have fixed font. If your font is truly fixed width, you can probably just set the NSTextView frame so i

Re: Limiting number of characters per line in a NSTextView

2009-03-18 Thread Martin Wierschin
I want my NSTextView to show only 32 characters per line and the 33rd character should be shown at next line of textview. My NSTextView will have fixed font. If your font is truly fixed width, you can probably just set the NSTextView frame so it exactly fits 32 characters on a line. Then set

Limiting number of characters per line in a NSTextView

2009-03-18 Thread Ankur Singhal
Hi, I want my NSTextView to show only 32 characters per line and the 33rd character should be shown at next line of textview. My NSTextView will have fixed font. I am so much confused which one of NSTextStorage/NSLayoutManager/NSTextContainer/NSTextView along with will solve my purpose. To