Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: _NSFastFillAllLayoutHolesUpToGlyphIndex crash in NSLayoutManager



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >_NSFastFillAllLayoutHolesUpToGlyphIndex crash in NSLayoutManager (From: Keith Blount <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.