Re: Limiting number of characters per line in a NSTextView
Re: Limiting number of characters per line in a NSTextView
- Subject: Re: Limiting number of characters per line in a NSTextView
- From: Andrew Farmer <email@hidden>
- Date: Mon, 23 Mar 2009 15:41:42 -0700
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 it exactly fits 32 characters on a line...
This approach won't behave correctly when character substitution is
applied (for characters that aren't in the target font). Depending on
the situation this may or may not be an issue.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden