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

setShowsInvisibleCharacters


  • Subject: setShowsInvisibleCharacters
  • From: Andrew Salamon <email@hidden>
  • Date: Thu, 18 Jul 2002 14:27:23 -0700

This has been touched on briefly a couple of times here and on the OmniDev list, but I still can't get it to work.

I'm going to quote from the documentation in /Developer/Documentation/Cocoa:
- (void)setShowsInvisibleCharacters:(BOOL)flag
Controls whether the receiver makes whitespace and other typically nonvisible characters visible in layout where possible. If flag is YES, it substitutes visible glyphs for invisible characters if the font and script support it; if flag is NO it doesn't.

Particularly notice: "if the font and script support it".

Also, from the header file itself:
// If YES, and the rulebooks and fonts in use support it, whitespace and other "invisible" unicodes will be shown with special glyphs (ie "." for space, the little CR icon for new lines, etc...)

So far I haven't been able to get invisible characters (tab, space, return,
etc) to show up as displayed glyphs. I've double checked and yes the flag is set on the layout manager for my text view. I've tried setting the font to ".Keyboard" (I have no idea what that does, but it was suggested in one post on the OmniDev list). I've tried just about every other font in my font menu, all with no luck. I also have no idea what a 'rulebook' is in this context, so that may be what I'm missing.

If I turn on the Unicode hex input method, I can type in the codes for some of these characters and they display just fine in a number of different fonts.

Can anyone suggest other things for me to try, or better yet some example code? I guess one possibility is for me to override the glyph generating methods on NSLayoutManager and insert the appropriate glyph before all special characters, but isn't that basically what setShowsInvisibleCharacters is supposed to do?

Thanks!

Andrew
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.

  • Follow-Ups:
    • Re: setShowsInvisibleCharacters
      • From: Charles Jolley <email@hidden>
  • Prev by Date: Re: Builds fail on previously working projects - help
  • Next by Date: Re: Knowing when application terminates...
  • Previous by thread: iTunes Plug-ins (non-visual)
  • Next by thread: Re: setShowsInvisibleCharacters
  • Index(es):
    • Date
    • Thread