• 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: Controlling line-breaking in a text view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controlling line-breaking in a text view


  • Subject: Re: Controlling line-breaking in a text view
  • From: John Joyce <email@hidden>
  • Date: Sun, 10 Aug 2008 10:14:37 -0500

You might consider subclassing, but you might also want to read a lot more stuff first.
Cocoa (and Carbon) text facilities are pretty deep.


There is nothing about a bug in the text system. It is just that the text handling in Cocoa is very sophisticated and is designed to handle things depending on language and locale and function. Where and how to break words and what is a word can be a very complex subject, even just in one language. Even in page layout for print media, some things are hand-tooled.

For your purposes, you might want something that recognizes a path or URL and formats it.

Text Layout Programming Guide
file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Conceptual/TextLayout/TextLayout.html

NSTypesetter Class
file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Reference/ApplicationKit/Classes/NSTypesetter_Class/Reference/Reference.html

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: CGImage masking via CGCreateImageWithMask getting odd results
  • Next by Date: Re: Accessing member variables from another thread crashes
  • Previous by thread: Re: Controlling line-breaking in a text view
  • Next by thread: Copying id
  • Index(es):
    • Date
    • Thread