• 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
NSLayoutManager Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Was Using OpenSSL and RSA - Blowfish in ObjC and Cocoa
  • Next by Date: Re: Working with Audio
  • Previous by thread: programmatic next key ordering ?
  • Next by thread: Font in NSOutlineView (newbie question)
  • Index(es):
    • Date
    • Thread