Re: Get text with hyphenation
Re: Get text with hyphenation
- Subject: Re: Get text with hyphenation
- From: Martin Wierschin <email@hidden>
- Date: Thu, 09 Oct 2014 17:29:29 -0700
A correction:
> Another potential approach: you might subclass the typesetter and override -[NSTypesetter shouldBreakLineByHyphenatingBeforeCharacterAtIndex:] and record the instances where super returns YES.
I forgot that NSTypesetter itself does not actually implement this method, so you can't call super. It's only provided to be implemented in subclasses. But you could still perhaps assume that when NSTypesetter calls this method, it intends to insert a hyphen.
~Martin Wierschin
_______________________________________________
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