Re: How do I soft-wrap text at a specific line length?
Re: How do I soft-wrap text at a specific line length?
- Subject: Re: How do I soft-wrap text at a specific line length?
- From: Allan Odgaard <email@hidden>
- Date: Mon, 16 Feb 2004 10:04:37 +0100
On 9. Feb 2004, at 4:31, Chris Kenny wrote:
I'd like to create an NSTextField which soft-wraps text at 80
characters, regardless of whether a monospaced or proportional font is
being used. So far, my experiments with the text system haven't been
very productive. Is there a reasonable way to do this?
hmm... you might replace all spaces with non-breaking spaces and insert
non-spacing break marks at every 80th character.
Alternatively you can create a non-rectangular NSTextContainer which
measures the text and shapes itself to the width of each line (of 80
characters).
--
Private Mails To Allan At Top-House Dot DK
http://www.diku.dk/hjemmesider/studerende/duff/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.