Just my $0.02, but I think it would be better and possibly easier if you
modified your application to address the issues that prevent you from using
the standard handler than trying to reimplement the relevant HIToolbar
handling. The more you rely on standard features the less you have to be
concerned with future standard behaviors not being available to your
application. The more you manually implement standard stuff like this the
more you risk having your code break or doing the wrong thing in a future
release of the OS.