Hello,
I have created a new macOS project. I dragged a NSToolbar onto my NSWindow and then I added a custom NSToolbarItem.
I then added an outlet for the item and connected my IBAction to the button (so the button is no longer disabled).
I have selected a symbol image for the custom item.
When I start my app, the default Fonts and Colour items use the new hover effect (where the background is being coloured differently). However, my custom item does not have this effect. The colour of the image is adjusted instead.
I know that I can achieve this effect by using a NSButton instead but I was wondering if I can achieve this effect with a NSToolbarItem.
I have created a new macOS project. I dragged a NSToolbar onto my NSWindow and then I added a custom NSToolbarItem.
I then added an outlet for the item and connected my IBAction to the button (so the button is no longer disabled).
I have selected a symbol image for the custom item.
When I start my app, the default Fonts and Colour items use the new hover effect (where the background is being coloured differently). However, my custom item does not have this effect. The colour of the image is adjusted instead.
I know that I can achieve this effect by using a NSButton instead but I was wondering if I can achieve this effect with a NSToolbarItem.