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

hyphenation


  • Subject: hyphenation
  • From: Eric Blanpied <email@hidden>
  • Date: Thu, 27 Jul 2006 10:38:31 -0400

I'm guessing that hyphenation requires a Layout Manager to be present.

I'm using [NSAttributedString drawInRect:] to draw text into bitmaps, rather than text views, and when I try to use an NSParagraphStyle object which has been prepared using setHyphenationFactor: the drawing method results in an exception. ObjectAtIndex out of range or something like that.

Looking over the docs, almost all conversation about hyphenation is in context of NSLayoutManager, and the API ref for setHyphenationFactor: says that the factor set on the NSMutbaleParagraphStyle works in relation to the factor set on the NSLayoutManager. This all makes me suspect that one can't use hyphenation without a Layout Manager.

Does anyone have any info on this?

Thanks

-eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: setBoundsSize problem - help needed
  • Next by Date: Re: setBoundsSize problem - help needed
  • Previous by thread: Re: How do I size a NSView to fit an NSImage?
  • Next by thread: connect() returns Refused Connection Error
  • Index(es):
    • Date
    • Thread