Jump To:
Leopard Sample Code: User Experience
Text manipulation consists of creating, managing, storing, and searching for text strings. Mac OS X programming interfaces provide capabilities that range from basic text input and display to sophisticated text encoding conversions, text-search capabilities, and document summarizations. To control how text is laid out and rendered in the written representation of languages, Mac OS X programming interfaces also enable sophisticated typography. For example, applications can precisely position individual glyphs and lines of text, draw Unicode text at any angle of rotation, kern text, and activate and deactivate fonts.

View all Text & Fonts Sample Code.
Document Descriptions
On Off
Display

Sort by
Title
Sorted by
Date
CoreTextArc (HTML) (DMG) (ZIP)
Illustrates the use of fonts, lines, and runs in a CoreText text drawing Carbon application.
2007-06-04
TextLayoutDemo (HTML) (DMG) (ZIP)
Customizing NSTextView with NSLayoutManager and a custom NSTextContainer.
2007-06-01
NSFontAttributeExplorer (HTML) (DMG) (ZIP)
Demonstrates how to gather and display various metric information for installed fonts using NSFont.
2006-10-26
PasteboardPeeker (HTML) (DMG) (ZIP)
Using pasteboards for Copy and Paste, Drag and Drop, service support and filter services.
2005-08-10
HITextViewDemo (HTML) (DMG) (ZIP)
Overview of basic HITextView functionality, including Tiger's new font & spelling panel support.
2005-06-01
MLTE_CustomScrolling (HTML) (DMG) (ZIP)
Shows how to implement MLTE's custom scrolling functionality
2004-10-15
InkSample (HTML) (DMG) (ZIP)
Demonstrates some usage scenarios for the Ink.Framework APIs.
2003-10-27
BasicInputMethod (HTML) (DMG) (ZIP)
An input method implemented as a text service component for Mac OS X.
2003-01-14
StyleFlatteningSample (HTML) (DMG) (ZIP)
Shows how to use the ATSUFlatten and ATSUUnflatten APIs.
2003-01-14