Glyph range in textContainers
Glyph range in textContainers
- Subject: Glyph range in textContainers
- From: Reza Farhad <email@hidden>
- Date: Wed, 13 Nov 2002 13:34:18 +0000
Dear all
I have a textstorage that is associated with a number of text
containers, and I am trying to find out the range of text in each
container.
I have been using the call
"-textContainerForGlyphAtIndex:effectiveRange:" as the documentation
indicates that it is the preferred option to
"-glyphRangeForTextContainer: " as it is more efficient.
oddly, using "-textContainerForGlyphAtIndex:effectiveRange:" I have
got the range of up to whole paragraphs only and it has ignored any
incomplete paragraphs at the end of the textcontainer. This is not the
case if I use "glyphRangeForTextContainer".
Can anybody shed some light on to this, and also why one call is
recommended over the other, as in the documentation it does imply that
both calls "Performs glyph generation and layout if needed".
With thanks
Reza
_______________________________________________
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.