NSLayoutManager Problems
NSLayoutManager Problems
- Subject: NSLayoutManager Problems
- From: Brock Brandenberg <email@hidden>
- Date: Wed, 27 Mar 2002 16:42:09 -0600
Has anyone had any good experience with an NSLayoutManager and the
didCompleteLayoutForTextContainer: delegate method? I'm using a custom
class with instances of an NSTextStorage object, an NSLayoutManager and
an NSTextContainer to manage characters and glyphs, and am extracting
geometry from the glyphs and using it in some polygon containment
routines. The problem is that I'm trying to simplify my code and use the
Cocoa delegate method to trigger my routine(s) for extracting glyph
information after glyph generation and layout has been completed.
Unfortunately, the process of extracting glyph information (like glyph
locations) after receiving didCompleteLayoutForTextContainer: appears to
be causing glyph regeneration and re-layout, causing an endless loop. I
have code working that doesn't use this delegate method (but has flags
and hooks in numerous places), but delegation appears on the surface to
be a simpler and more "correct" thing to do. Any Ideas?
Thanks,
Brock Brandenberg
----- industrial design @ bergdesign ------
web site: www.bergdesign.com
email: email@hidden
--------------------------------------------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.