• 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: Modifying glyph storage in NSLayoutManager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modifying glyph storage in NSLayoutManager


  • Subject: Re: Modifying glyph storage in NSLayoutManager
  • From: Martin Wierschin <email@hidden>
  • Date: Mon, 17 Mar 2008 20:19:40 -0700

I have some text items whose glyphs cannot be determined until layout. The text string might contain a marker to draw the current page number, or to sequentially number paragraphs, etc. The glyphs can be determined only by the layout manager; different layout managers for the same text storage might display different page numbers, for example.

One alternative to the glyph generator is to subclass NSTextAttachment. The attachment cell can query the text container / layout manager for any information it needs during cell frame calculation and drawing.


~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


  • Follow-Ups:
    • Re: Modifying glyph storage in NSLayoutManager
      • From: Ross Carter <email@hidden>
References: 
 >Modifying glyph storage in NSLayoutManager (From: Ross Carter <email@hidden>)

  • Prev by Date: Re: NSButtonCell doesn't visually update during trackMouse:inRect:ofView:untilMouseUp:
  • Next by Date: Re: Confused about CFRunLoop
  • Previous by thread: Re: Modifying glyph storage in NSLayoutManager
  • Next by thread: Re: Modifying glyph storage in NSLayoutManager
  • Index(es):
    • Date
    • Thread