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

Re: LayoutManager


  • Subject: Re: LayoutManager
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 27 Nov 2001 09:06:13 -0800

On Monday, November 26, 2001, at 09:32 PM, Charles Jolley wrote:

Just a thought...try NSLayoutManager's:

- (void)setNotShownAttribute:(BOOL)flag forGlyphAtIndex:(unsigned)glyphIndex;


I haven't used this myself...but it looks like it might do what you are wanting!

Setting the not shown attribute means that the glyph will not be drawn, but unless you do something more it will still be laid out normally. To really collapse the hidden text, you would not want the corresponding glyphs to occupy any space in the layout, which means a custom typesetter. This is why the not shown attribute is customarily set by the typesetter--the stock system typesetter uses it for control glyphs and for glyphs clipped at the end of a line.

Douglas Davidson


References: 
 >Re: LayoutManager (From: Charles Jolley <email@hidden>)

  • Prev by Date: Re: Finding Glyphs for String
  • Next by Date: Re: cocoa-dev digest, Vol 1 #899 - 16 msgs
  • Previous by thread: Re: LayoutManager
  • Next by thread: Re: LayoutManager
  • Index(es):
    • Date
    • Thread