• 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
Preventing newlines from wrapping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Preventing newlines from wrapping


  • Subject: Preventing newlines from wrapping
  • From: Brian Webster <email@hidden>
  • Date: Tue, 23 Apr 2002 08:49:39 -0500

I'm writing a custom text view in which I want to display a placeholder in place of non-displayed characters such as tab, newline, carriage return, etc. I have successfully gotten my placeholder to be displayed, but I haven't figured out how to prevent the text flow from continuing on to the next line when a newline is in the text (tabs work the way I want). The placeholder glyph appears correctly, but I would like the next glyph to be right next to it, and instead it appears at the beginning of the next line. Does NSLayoutManager just do this automatically? Is there a way to override it?

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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: PB Compiler error
  • Next by Date: Printing example in Cocoa Programming for MacOS X
  • Previous by thread: Re: PB Compiler error
  • Next by thread: Printing example in Cocoa Programming for MacOS X
  • Index(es):
    • Date
    • Thread