• 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: Get text with hyphenation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Get text with hyphenation (From: Leonardo <email@hidden>)
 >Re: Get text with hyphenation (From: Martin Wierschin <email@hidden>)

  • Prev by Date: Re: Get text with hyphenation
  • Next by Date: Scaling an NSImage to have exact pixel dimensions
  • Previous by thread: Re: Get text with hyphenation
  • Next by thread: Table of TextViews
  • Index(es):
    • Date
    • Thread