Detect 3rd and 4th mouse buttons on OS X?

Does someone know how to handle the extra mouse buttons of a 3- oder 4 button mouse, such as the Mighty Mouse provides?

Look at the [[[NSApplication sharedApplication] currentEvent] buttonNumber], which will be valid during MouseDown/MouseUp events (and maybe MouseDrag events).