objective c - Disable NSToolbar customisation via window's toolbar button? -
I'm looking to disable command + click combination on the toolbar button (at the top right) in the Cocoa window. I still want to let the user show and hide the toolbar, but I do not want them to choose a different display mode (like small icons, an icon, etc.).
Has anyone found a way to do this? thank you in advanced.
Have you tried using a custom NSToolbar subclass that overrides setDisplayMode: And setSizeMode: Not to do anything? This will definitely not delete the menu item, or the UI is in the optimization sheet (assuming you are not also disabled with setAllowsUserCustomization), but this can prevent them from doing something.
Comments
Post a Comment