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