Re: NSLayoutManager question
Re: NSLayoutManager question
- Subject: Re: NSLayoutManager question
- From: Brian Webster <email@hidden>
- Date: Mon, 3 Feb 2003 19:50:19 -0600
On Monday, February 3, 2003, at 05:42 PM, Koen van der Drift wrote:
At 4:11 PM -0600 2/3/03, Brian Webster wrote:
NSTextContainer would be better suited to doing this than
NSLayoutManager. If you write your own subclass of NSTextContainer,
you can use it to define what regions of a text view you want text to
flow into. So, your subclass would only allow ten characters at a
time
to be laid out, putting a gap in between each line fragment.
Thanks, I'll look into that. Do I need a separate textcontainer for
each
line fragment, or can one instance of it take care of it?
One text container is used for each NSTextView, no matter the number of
breaks you want to make in the text.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.