Re: Modifying glyph storage in NSLayoutManager
Re: Modifying glyph storage in NSLayoutManager
- Subject: Re: Modifying glyph storage in NSLayoutManager
- From: Martin Wierschin <email@hidden>
- Date: Mon, 17 Mar 2008 20:19:40 -0700
I have some text items whose glyphs cannot be determined until
layout. The text string might contain a marker to draw the current
page number, or to sequentially number paragraphs, etc. The glyphs
can be determined only by the layout manager; different layout
managers for the same text storage might display different page
numbers, for example.
One alternative to the glyph generator is to subclass
NSTextAttachment. The attachment cell can query the text container /
layout manager for any information it needs during cell frame
calculation and drawing.
~Martin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden