• 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: Invisible Characters & Specifying Their "Width"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invisible Characters & Specifying Their "Width"


  • Subject: Re: Invisible Characters & Specifying Their "Width"
  • From: Seth Willits <email@hidden>
  • Date: Thu, 2 Nov 2006 23:25:30 -0800

On Nov 2, 2006, at 10:23 PM, Seth Willits wrote:

You'll want to create an NSTypesetter subclass that overrides:

- actionForControlCharacterAtIndex:
- boundingBoxForControlGlyphAtIndex:etc:

If its idea of a control glyph is different than your own, then you'll have to look to modifying the NSGlyphGenerator.

Hmmm....


Well, like Dominik (http://www.cocoabuilder.com/archive/message/ cocoa/2006/4/10/160743), I don't see any layout change, but the methods are being called appropriately.


<snip>

I guess I'll have to try the glyph generator...?


Of course you can't subclass NSGlyphGenerator because it's an abstract class so you need to fully implement the generateGlyphs method and I hardly have any clue as to what I'm doing, so this is no fun.


actionForControlCharacterAtIndex tooooooootally should work but I can't figure out why it doesn't. Returning NSTypesetterHorizontalTabAction works as you'd expect, but NSTypesetterWhitespaceAction doesn't. I've searched all over, docs, google, mailing lists, the header, and read every single thing I could find and nothing is offering any hints. Bah.



--
Seth Willits



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Invisible Characters & Specifying Their "Width" (From: Seth Willits <email@hidden>)
 >Re: Invisible Characters & Specifying Their "Width" (From: Martin Wierschin <email@hidden>)
 >Re: Invisible Characters & Specifying Their "Width" (From: Seth Willits <email@hidden>)

  • Prev by Date: New Quartz Tutorial
  • Next by Date: Re: What am I doing wrong with creating a package?
  • Previous by thread: Re: Invisible Characters & Specifying Their "Width"
  • Next by thread: Re: Invisible Characters & Specifying Their "Width"
  • Index(es):
    • Date
    • Thread