Re: No NSTextContainer being returned for glyph range
Re: No NSTextContainer being returned for glyph range
- Subject: Re: No NSTextContainer being returned for glyph range
- From: Douglas Davidson <email@hidden>
- Date: Wed, 6 Sep 2006 16:11:21 -0700
On Sep 6, 2006, at 3:44 PM, Mike R. Manzano wrote:
The assertion (NSAssert1) is being thrown every now and then during
program execution. The if statement validates that the glyphRange
in question is valid. The call to
textContainerForGlyphAtIndex:effectiveRange:withoutAdditionalLayout: s
hould finish the layout so that a valid response can be returned.
My question is, if the glyph range is a valid one, and the layout
is ensured to be finished, then can't I assume a valid container to
be returned every time?
You don't say much about how your text containers are configured.
Layout can be complete and a glyph can still have no text container
if the text containers fill up and the glyph happens to lie beyond
the text that fits.
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden