Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hyphenation



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.