The menus that allow people to request your action are defined in several places:
- SCPluginUIDaemon/SCUIDaemonController.m
- SCToolbarButton/main.m
This part is very consistently patterned, and pretty easy to cut-and-paste.
The only nonobvious bit is probably the use of the menuitems.strings file. This solves two problems:
- The strings can be translated into another language simply by copying this file to the appropriate language-specific directory and translating; no code changes needed.
- Menu commands for things that require a preliminary dialog (for instance, the Checkout operation can't actually begin until you tell it where the repository is). The Apple UI Guide requires that these have menu pick names that end in the ellipsis character -- "Checkout…", not "Checkout...". But the ObjC source code can't contain this, but the strings file can


