Version: 1.0

Posted: 2007-06-07

Build Requirements: Xcode 3.0, Mac OS X 10.5

Runtime Requirements: Mac OS X 10.5

View Source Code:

Download Sample (“TrackBall.zip”, 6.97M)
Download Sample (“TrackBall.dmg”, 7.32M)



Description

"TrackBall" is a Cocoa sample application that demonstrates how to create your own custom Cocoa control. It is designed to show what needs to be done to develop a fully featured Cocoa control based on the NSControl class. It involves implementing behaviors such as drawing, mouse and scroll wheel tracking, text editing, as well as accessibility.

This is structured as a demo for use in the session "Building a Custom Control for your Cocoa Applicaton (125)" for WWDC 2007.

Document Revision History

Date Notes
2007-06-07Demonstrates how to build a custom control based on the NSControl class.

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.