NSTypesetter and smart quotes
NSTypesetter and smart quotes
- Subject: NSTypesetter and smart quotes
- From: Jeremy Dronfield <email@hidden>
- Date: Fri, 30 Jan 2004 12:04:20 +0000
According to release notes relating to 10.2, NSTypesetter "utilizes
the Apple Type Service for Unicode Imaging functionality extensively,
providing applications with advanced typography features such as
smart-quoting". How can these features be accessed? I particularly want
to have smart-quoting in an NSTextView. I've tried:
[[textView layoutManager]
setTypesetterBehavior:NSTypesetterBehavior_10_3];
but it has no effect. (Presumably because all text views created under
10.3 will already be using the latest typesetter behaviour?) I've
looked at the documentation for NSATSTypesetter and text layout, but
found no clues there. Where are the smart quotes? Do I need to use
Carbon kSmartQuotesOnSelector, and if so how do I do it? (The release
notes mention that AppKit is disabling kSmartQuotesOffSelector so it
doesn't seem like a good idea to go there.)
Any guidance would be appreciated.
-Jeremy
========================================
email@hidden
theLocustFarm.net:
- fractious fiction at
http://freespace.virgin.net/jeremy.dronfield
========================================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.