Paragraph width and styled attributed strings
Paragraph width and styled attributed strings
- Subject: Paragraph width and styled attributed strings
- From: Timothy Larkin <email@hidden>
- Date: Thu, 15 Jul 2004 12:07:45 -0400
I have an attributed string that appears in a resizable NSTextView.
When the string does not have an NSStyle attribute, it is wrapped to
fit in the bounds of the NSTextView.
If the string does have a style attribute, then it is wrapped to fit
some fixed width which is not changed when the view width changes. (If
the string has a styled range and an unstyled range, then the text of
the styled range maintains a fixed width, while the text of the
unstyled range does not.) However, NSParagraphStyle has no method for
accessing or changing the paragraph width.
How can I make the width of a styled paragraph track the width of its
containing text view?
Tim Larkin
Abstract Tools
_______________________________________________
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.