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 (“TipWrapper.zip”, 76.4K)
Download Sample (“TipWrapper.dmg”, 131.6K)



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.

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.