Re: Subclassing NSLayoutManager
Re: Subclassing NSLayoutManager
- Subject: Re: Subclassing NSLayoutManager
- From: Douglas Davidson <email@hidden>
- Date: Mon, 24 Feb 2003 17:13:29 -0800
On Monday, February 24, 2003, at 3:42 PM, Charles Srstka wrote:
Thanks, that sounds like a very reasonable solution. Do you know if
there's any way to coerce the default typesetter to wrap the text
after a fixed number of characters rather than right at the bounds of
the enclosing text container? If I could do that, I could dump my
NSTypesetter subclass altogether...
The principal means of forcing wrapping at a particular position is to
insert a hard line break. Other than that, the typesetter prefers to
wrap at word breaks where possible, and one can override the
NSAttributedString methods for determining word breaks to return
preferred break points (although this may have other effects as well).
Douglas Davidson
_______________________________________________
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.