• 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: How do I soft-wrap text at a specific line length?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I soft-wrap text at a specific line length?


  • Subject: Re: How do I soft-wrap text at a specific line length?
  • From: Ryan Bates <email@hidden>
  • Date: Mon, 9 Feb 2004 09:11:25 -0800

I don't think there's any easy way to do this. It probably involves subclassing NSTextContainer.

Have you seen the TipWrapper example? I realize it's not exactly what you're looking for, but it works closely with the text layer and therefore might have some helpful code:

<http://developer.apple.com/samplecode/Sample_Code/Cocoa/TipWrapper.htm>

Good luck!

Ryan

On Feb 8, 2004, at 7:31 PM, Chris Kenny wrote:

I'd like to create an NSTextField which soft-wraps text at 80 characters, regardless of whether a monospaced or proportional font is being used. So far, my experiments with the text system haven't been very productive. Is there a reasonable way to do this?
_______________________________________________
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.
_______________________________________________
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: How do I soft-wrap text at a specific line length?
      • From: Chris Kenny <email@hidden>
References: 
 >How do I soft-wrap text at a specific line length? (From: Chris Kenny <email@hidden>)

  • Prev by Date: Re: Changing button highlights with Alert dialogs
  • Next by Date: Tabs window autoresizing.
  • Previous by thread: How do I soft-wrap text at a specific line length?
  • Next by thread: Re: How do I soft-wrap text at a specific line length?
  • Index(es):
    • Date
    • Thread