I have an application which calls runCustomizationPalette.
In my application I add my tools to the NSToolbar and then I set one of them not to be displayed by default.
The toolbar is set to display both image and text.
When I run the application everything works as expected - the tool that turned off is not displayed. But when I call the function, palette is displayed, but the tool that is turned off shows in the palette with Text Only - no image is displayed.
When I remove the default button removal and display all the buttons in the toolbar and display the customization palette - everything is displayed as it should.
My question would be - what is controlling the display of the images in the Customization Palette?
TIA!!
EDIT:
This is the code for toolbar creation:
NSToolbar* tb = [[wxNSToolbar alloc] initWithIdentifier:cfidentifier.AsNSString()];
[tb setAllowsUserCustomization:YES];
[tb setAutosavesConfiguration:YES];
NSToolbarDisplayMode mode = NSToolbarDisplayModeDefault;
NSToolbarSizeMode displaySize = NSToolbarSizeModeSmall;
if ( style & NOICONS )
mode = NSToolbarDisplayModeLabelOnly;
else if ( style & TEXT )
mode = NSToolbarDisplayModeIconAndLabel;
else
mode = NSToolbarDisplayModeIconOnly;
[tb setDisplayMode:mode];
[tb setSizeMode:displaySize];
What am I missing? It should be something really simple like some ind of style...