Bug 270146 [Mac] NSToolbar leak in CocoaUIEnhancer
bundles/org.eclipse.ui.cocoa/src/org/eclipse/ui/internal/cocoa/CocoaUIEnhancer.java
boolean coolBarInitiallyVsible = ((WorkbenchWindow) window)
				.getCoolBarVisible();
		boolean perspectiveBarInitiallyVsible = ((WorkbenchWindow) window)
				.getPerspectiveBarVisible();
		if (coolBarInitiallyVsible || perspectiveBarInitiallyVsible) {
			
			
			
			NSToolbar dummyBar = new NSToolbar();
			dummyBar.alloc();
			dummyBar.initWithIdentifier(NSString.stringWith("SWTToolbar")); 
			dummyBar.setVisible(false);
			
			Shell shell = window.getShell();
			NSWindow nsWindow = shell.view.window();
			nsWindow.setToolbar(dummyBar);
			nsWindow.setShowsToolbarButton(true);
			
			
			try {
				Object fieldValue = wrapPointer(NSWindowToolbarButton);
				NSButton toolbarButton = (NSButton) invokeMethod(NSWindow.class, nsWindow, "standardWindowButton", new Object[] {fieldValue});
				toolbarButton.setTarget(delegate);
				invokeMethod(NSControl.class, toolbarButton, "setAction",
						new Object[] { wrapPointer(sel_toolbarButtonClicked_) });
			} catch (Exception e) {
				
				
				log(e);