Still running Seqoia but recently updated to the latest XoJo and the latest MBS plugins. A couple of my windows were not getting all their custom toolbar buttons. After some messing around it was because I was using capital letters in the itemForIdentifier event of the CustomNSToolbarMBS class.

It had worked before because I capitalized it in all the places, but it was no longer working because what was being passed back did not match, even with Xojo’s normal non-case sensitive string comparisons for whatever reason.

so in the constructor:
itemIdentifiers.Append( “delete”)
and in the itemForIdentifier event:

select case identifier
case “delete"
Dim newDeleteItem As New NSToolbarItemMBS( "delete”)

works find but if you do it with the delete capitalized it does not work anymore. 

In the constructor:
itemIdentifiers.Append( “Delete”)

and in the itemForIdentifier event:

select case identifier
case “Delete"
Dim newDeleteItem As New NSToolbarItemMBS( “Delete”)


does not work.  This is a change from the old behavior so just in case anyone else is wondering where some of their custom toolbar controls went.

note that the .label and .paletteLabel properties can be capitalized as needed, this does not effect that. 




Thanks,
 James


James Sentman                       http://www.PlanetaryGear.org http://MacHomeAutomation.com