Bug 270146 [Mac] NSToolbar leak in CocoaUIEnhancer
bundles/org.eclipse.ui.cocoa/src/org/eclipse/ui/internal/cocoa/CocoaUIEnhancer.java
}
		}
		
		try {
			sel_toolbarButtonClicked_ = registerName("toolbarButtonClicked:"); 
			sel_preferencesMenuItemSelected_ = registerName("preferencesMenuItemSelected:"); 
			sel_aboutMenuItemSelected_ = registerName("aboutMenuItemSelected:"); 
			init();
		} catch (Exception e) {
			
			
			log(e);
		}
    }
    
    private long registerName(String name) throws IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {
    	Class clazz = OS.class;
    	Object object = invokeMethod(clazz, "sel_registerName", new Object[] {name});
    	return convertToLong(object);
    }
    
    /* (non-Javadoc)
     * @see org.eclipse.ui.IStartup#earlyStartup()
     */
    public void earlyStartup() {
        final Display display = Display.getDefault();
        display.syncExec(new Runnable() {
            public void run() {
            	try {
            		delegate = new SWTCocoaEnhancerDelegate();