• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: _NSFastFillAllLayoutHolesUpToGlyphIndex crash in NSLayoutManager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: Accessing javaScript in iframes via Objective-C
  • Next by Date: Correctly implementing page up/down, home and end for custom views?
  • Previous by thread: _NSFastFillAllLayoutHolesUpToGlyphIndex crash in NSLayoutManager
  • Next by thread: duplicate help menu
  • Index(es):
    • Date
    • Thread