Re: Controlling line-breaking in a text view
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