Version: 1.0

Posted: 2003-12-18

Build Requirements: N/A

Runtime Requirements: Mac OS X Mac OS X 10.2 or higher, Project Builder

View Source Code:

Download Sample Code (“TipWrapper.zip”, 74.3K)



Description

TipWrapper is an example Cocoa application which shows how to wrap long tool tips into multiple lines, a feature not provided by the AppKit before OS X 10.3. To do the wrapping, it makes extensive use of the AppKit's features for measuring and laying out text. You can use this approach to wrap tool tips on OS X 10.2 and earlier, but 10.3 provides much a better wrapping implementation than this example. Requirements: Mac OS X 10.2 or higher, Project Builder Keywords: tooltip setToolTip wrapping

Document Revision History

Date Notes
2003-12-18Shows how to wrap long tool tips into multiple lines in Cocoa.