TextLayoutDemo
Last Revision: | |
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
Copyright © 2012 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2012-06-09