Version: 1.0

Posted: 2007-06-01

Build Requirements: Mac OS X 10.5, Xcode 3.0

Runtime Requirements: Mac OS X 10.5

View Source Code:

Download Sample (“TextLayoutDemo.zip”, 152.3K)
Download Sample (“TextLayoutDemo.dmg”, 213.6K)



Description

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

Document Revision History

Date Notes
2007-06-01Customizing NSTextView with NSLayoutManager and a custom NSTextContainer.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.