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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to