Re: _NSFastFillAllLayoutHolesUpToGlyphIndex crash in NSLayoutManager
Re: _NSFastFillAllLayoutHolesUpToGlyphIndex crash in NSLayoutManager
- Subject: Re: _NSFastFillAllLayoutHolesUpToGlyphIndex crash in NSLayoutManager
- From: Martin Wierschin <email@hidden>
- Date: Mon, 30 Jul 2007 19:27:59 -0700
Hi Keith,
If anyone can see what I am doing wrong in the above
method (bearing in mind that it gets called from the
NSLayoutManager delegate method), I would be very
grateful; I have now spent days on this to no avail.
In my experience Bad Things can happen if you trigger additional
layout from the "didCompleteLayout" delegate method. This is a huge
annoyance, but basically you will need to relocate your validation
code. You have two options:
1. Make it happen after NSLayoutManager has cleanly filled part of a
layout hole, eg: the method "_fillLayoutHoleAtIndex:etc:" is no
longer active on the stack.
2. Make it happen concurrently with NSTypesetter's line fragment
placement. This is more complicated.
~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