So you must add the following credit to your about box/splash screen:
Portions Copyright (c) 2008 Ross Tulloch.
A simple GUI wrapper (System Profiler style) around Apple's FSMegaInfo sample code command line tool. GUI source not available. Apple's code can be found here.
If looking for interesting icons to use in your application, the header file 'Icons.h' (or 'IconsCore.h' under Leopard) contains many useful HFS type codes for icons which can be used for alerts, badges, devices, generic file types, toolbars etc. This is a trivial application which allows you to paste in a HFS type code and display its associated icon. Unexciting source code is included.
ZOTTitlebarWindow v1.1 (Updated)
Cocoa (as of 10.4) only supports adding proxy menus to NSWindows when using NSDocument.
This code is a Cocoa class which allows you to add proxy style popup
menus (with an icon!) to any window's titlebar.
It doesn't use undocumented OS calls or suffer from
the "window-still-drags-under-popup" problem (*cough*Safari*cough*).
Have a look at the demo app to see how to use it.
It's only been tested under 10.4 but may work on earlier systems.
Demo project requires xCode 2.3.