Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
Version 2.0.1, 2005-08-10
Updated to produce a universal binary. No code changes were required.
Mac OS X Mac OS X 10.3 and later
This is a sample program that demonstrates how to use the Apple Text Services For Unicode Imaging (ATSUI) technology in a Carbon Events based HIView architectured application. This sample code has been updated to include a project that produces a universal binary. No code changes were required for it to run correctly on the Developer Transition Systems. It contains a ready-to-use HIATSUIView which is a custom HIView The HIATSUIView handles: - getting and setting the text content - getting and setting the styles - getting and setting the selection - various features like colors, wrapping, framing, justification, and transparency - copying and dragging - scrolling and auto-scrolling - handling of double-clicks, triple-clicks, quadruple=clicks, click-and-drag, shift-clicking The TypeForServices code handles: - showing how to set the text - showing how to set the text and styles - showing how to rotate - showing how to handle font variants - showing how to handle font selection through the standard Font menu - showing how to handle font selection through the standard Font panel - showing how to instantiate the HIATSUIView from a nib - showing how to read a text file and set the HIATSUIView content - showing how to handle the clipboard - showing how to handle background pictures
© 2005 Apple Computer, Inc. All Rights Reserved. (Last updated: 2005-08-10)