Project: SWT
Bug 239141 [Mac] Application menu hook example needed
Reported: 2008-07-01 12:27:09 | Status: resolved fixed

Need a code sample/snippet that implements the equivalent "application menu hook" from carbon. This allows the SWT application to behave more like a native OS X application. In RCP/carbon the workbench has something called CarbonUIEnhancer.java - the same thing will be needed for cocoa. That file contains a good example of a SWT/carbon application menu hook for SWT/carbon.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTextView.java bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSToolbar.java bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSWindow.java bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Widget.java