NSToolbarItem identifiers Must Be Lowercase?
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
On 17. Jan 2026, at 17:39, james--- via MBS Xojo Plugins <mbsxojoplugins@lists.monkeybreadsoftware.com> wrote:
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.
I would suggest to define a constant for each identifier, so you use the exact same typing each time. It's so easy to misspell something with case sensitive strings. Greetings Christian — See you at the [Full Access] 2026 August 24th – 27th 2026 in Pacific Grove, California https://fullaccess.us
participants (2)
-
james@sentman.com -
support@monkeybreadsoftware.de