> I don't know about the inner workings of Mac applications, but isn't there a resources file that exposes menu items?
I guess so, if one knows how to read NIB files (which I'm sure any OS X programmer does, but I don't):
$ cd /Applications/Safari.app; grep -r 'Show Top Sites' *
Binary file Contents/Resources/English.lproj/ToolbarItems.nib matches
> Seems like this could be accessed via some kind of API.
Sure, and there's no need even for it to be a public API, since it's Apple software that sets the shortcut. My question wasn't how the program should handle it, but what would be the best way to present the choice to a (non-programmer) user.
I guess so, if one knows how to read NIB files (which I'm sure any OS X programmer does, but I don't):
$ cd /Applications/Safari.app; grep -r 'Show Top Sites' * Binary file Contents/Resources/English.lproj/ToolbarItems.nib matches
> Seems like this could be accessed via some kind of API.
Sure, and there's no need even for it to be a public API, since it's Apple software that sets the shortcut. My question wasn't how the program should handle it, but what would be the best way to present the choice to a (non-programmer) user.