[OS X Lion] Toolbar issue

Archives Forums/MaxGUI Bug Reports/[OS X Lion] Toolbar issue

FabriceW(Posted 2011) [#1]
There is a issue with the toolbar in Lion, it seams that NSToolbarSeparatorItemIdentifier in the NSAddItem Function is no longer valid in this use case.
It manifests itself in an Array that isn't big enough to hold all elements. This Problem only shows if the Toolbar Image contains "blank" elements.

This problem can be fixed by changing NSToolbarSeparatorItemIdentifier to NSToolbarSpaceItemIdentifier.

A snippet from the "cocoa.macos.m"
		if (image==0){
			[toolbar insertItemWithItemIdentifier:NSToolbarSpaceItemIdentifier atIndex:index];	
                        //Replace NSToolbarSeparatorItemIdentifier with NSToolbarSpaceItemIdentifier