Handle Native OS X Application Events in SWT

If you’ve been stumped on how to cover that ‘last mile’ with making your SWT application look completely native on OS X, take a peek at the open source project Azureus.  In my case, I had 2 issues left to figure out -

  1. Capture and handle dock icon click events
  2. Add additional menu items to the application menu

Follow the link below and look at the class ‘CarbonUIEnhancer’.  This class demonstrates how to hook into OS X’s application menu and handle AppleScript events.

Browse Azureus swt.osx source package 

Leave a Reply