TextLayoutDemo

Last Revision:
Version 1.1, 2012-06-09
Upgraded to Xcode 4.3 and Mac OS X 10.7
(Full Revision History)
Build Requirements:
Mac OS X 10.7, Xcode 4.3
Runtime Requirements:
Mac OS X 10.6.x or later

This sample Cocoa application shows how to customize NSTextView with NSLayoutManager and by subclassing NSTextContainer.

This is structured as a demo for use in the session "Customizing the Cocoa Text System (134)" for WWDC 2007.

Run the application and the following Command-keys demonstrate:

Cmd<1> = An unmodified NSTextView

Cmd<2> = Multiple instances of NSLayoutManager to provide for two-column text layout

Cmd<3> = A subclass of NSTextContainer to provide for round layout

Cmd<4> = Glyphs are incrementally laid out around a circular path