Skip to content

Cross platform wrapper to Mac's com.apple.eawt extension.

Notifications You must be signed in to change notification settings

nebulorum/macify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Macify

This is a simple cross platform wrapper to the Java com.apple.eawt version 1.6 API.

The idea is to provide a Mac independent library that can be compile on other platforms and included in projects. Code that sets handlers in the com.apple.eawt.Application can be defined on a non Mac machine, compiled, and packaged.

As long as the code path that defines the handlers is not executed on non Mac machines the code will not interfere with normal execution. On the Mac the wrappers will setup the required handlers correctly.

The adapters and wrappers handle the following events:

  • Application Quit (Command-Q)
  • Application About
  • Application Preferences

A simple utility static method is provided to verify if the code is executing on a Mac or not. A simplified usage:

if (Macify.isMac()) {
  Macify.getApplication().setQuitHandler(...);
}

About

Cross platform wrapper to Mac's com.apple.eawt extension.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages