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: Ryan Bates <email@hidden>
- Date: Mon, 9 Feb 2004 09:11:25 -0800
I don't think there's any easy way to do this. It probably involves
subclassing NSTextContainer.
Have you seen the TipWrapper example? I realize it's not exactly what
you're looking for, but it works closely with the text layer and
therefore might have some helpful code:
<
http://developer.apple.com/samplecode/Sample_Code/Cocoa/TipWrapper.htm>
Good luck!
Ryan
On Feb 8, 2004, at 7:31 PM, 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?
_______________________________________________
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.
_______________________________________________
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.