Mac OS X Reference Library Apple Developer
Search

TextLayoutDemo

Last Revision:
Version 1.0, 2007-06-01
Customizing NSTextView with NSLayoutManager and a custom NSTextContainer.
Build Requirements:
Mac OS X 10.5, Xcode 3.0
Runtime Requirements:
Mac OS X 10.5

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




Last updated: 2007-06-01

Did this document help you? Yes It's good, but... Not helpful...