Hi guys,
Since the new toolbar functionality in IB3 is only for leopard, I will still have to grab back to the original method of making them.
i presume they are going from left to right (as in arrangement). so i have three icons. 2 on the left and one on the right. separated by a flexible space divider.
i tried this coding to accomplish it:
on awake from nib theObject
set documentToolbar to make new toolbar at end with properties {name:"document toolbar", identifier:"document toolbar identifier", allows customization:false, auto sizes cells:true, display mode:default display mode, size mode:default size mode}
set allowed identifiers of documentToolbar to {"compile item identifier", "run item identifier", "stop item identifier", "print item identifier", "customize toolbar item identifier", "flexible space item identifier", "space item identifier", "separator item identifier"}
set default identifiers of documentToolbar to {"compile item identifier", "run item identifier", "stop item identifier"}
make new toolbar item at end of toolbar items of documentToolbar with properties {identifier:"compile item identifier", name:"compile item", label:"Compile", palette label:"Compile", tool tip:"Compile", image name:"CompileScript"}
make new toolbar item at end of toolbar items of documentToolbar with properties {identifier:"run item identifier", name:"run item", label:"Run", palette label:"Run", tool tip:"Run", image name:"RunScript"}
-- HERE COMES THE NOT WORKING SEPARATOR:
make new toolbar item at end of toolbar items of documentToolbar with properties {identifier:"flexible space item identifier", name:"flexible spacer", label:"", palette label:"", tool tip:"", image name:""}
-- END IT
make new toolbar item at end of toolbar items of documentToolbar with properties {identifier:"stop item identifier", name:"stop item", label:"Stop", palette label:"Stop", tool tip:"Stop", image name:"StopScript"}
set toolbar of theObject to documentToolbar
end awake from nib
i got the code from the sample project - but its not working
Any ideas why?
Max