@burkhard said:
Found a workaround. It needs to be refresh, ...
So, if a Toolbar is not loaded, it works after refresh the hash.
The Toolbar WAS loaded, but UI::Toolbar references are NOT automatically added into the custom User::ToolbarSet hash.
SO.. I created the UI::Toolbar.refresh() method to find any new toolbars (created after the hash was populated,) and add them.
I WILL NOT modify the API's UI::Toolbar class constructor method, in a public script, because I feel it is a violation of the API Terms of Use.
BUT perhaps we can modify the User::ToolbarSet hash's [] method's error Proc, so that it refreshes the hash automatically.
See: http://sketchucation.com/forums/viewtopic.php?f=180&t=51432&p=466742#p466742