net.curre.prefcount.util.mac
Class MacOsHandler

java.lang.Object
  extended by net.curre.prefcount.util.mac.MacOsHandler

public class MacOsHandler
extends java.lang.Object

This is a Mac OS helper class to assist with handling of MAC OS events using the com.apple.eawt.Application class. This class will not work on a platform other than Mac OS.

It's important to note, that in this class, we use classes from the com.apple.eawt package, but since no such package exist on a non-Mac platform, we must use reflection API to create objects and invoke methods of those Mac-specific classes.

Created date: Jan 22, 2008

Author:
Yevgeny Nyden

Constructor Summary
MacOsHandler()
           
 
Method Summary
static void initializeMacOsHandler()
          Method to initialized Mac OS application handler, which functionality is based upone the com.apple.eawt.Application class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacOsHandler

public MacOsHandler()
Method Detail

initializeMacOsHandler

public static void initializeMacOsHandler()
Method to initialized Mac OS application handler, which functionality is based upone the com.apple.eawt.Application class. Here we add custom "about" and "quit" handlers to the Mac application menu bar.

This method should be called once per application run - successive calls will have no effect.



Copyright © 2008. All Rights Reserved.