Version: 1.0

Posted: 2007-09-11

Build Requirements: Xcode 3.0, Mac OS X 10.5

Runtime Requirements: Mac OS X 10.5

View Source Code:

Download Sample (“DockTile.zip”, 915.7K)
Download Sample (“DockTile.dmg”, 984.5K)



Description

"DockTile" is a Cocoa application that demonstrates how to customize your application's icon in the Dock by using the NSDockTile class.

The NSDockTile class lets you customize the visual representation for your application’s miniaturized windows and application icon as they appear in the dock. Use this sample to learn the specific APIs to provide badging your icon as well as performing any kind of drawing you like. This sample also customizes the dock tile's menu by implementing NSApplication's outlet NSMenu 'dockMenu'.

Document Revision History

Date Notes
2007-09-11Demonstrates how to customize your application's icon in the Dock by using the NSDockTile 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.