Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making an application "active" from java



Bill Janssen wrote:
| My app does use com.apple.eawt.Application, already.  It would be nice
| if this class could support some of this functionality.  My guess is
| that it already encapsulates a Cocoa application object of some sort.

I doubt it. Most of eawt.Application's methods relate to mucking about with the menu bar in ways that a regular Cocoa application wouldn't need a special object for. (For instance, the Cocoa app wouldn't need a "getEnabledPreferencesMenu()" method, because it would have direct control over the preferences menu item.) The remaining methods deal with ApplicationListeners (which essentially repackage AppleEvents), plus one for converting the mouse location to screen coordinates, which would be handled by an NSView class in the Cocoa application.

A Cocoa application might *have* an object equivalent to eawt.Application, but it would likely be an application-specific class, created for the programmer's convenience.

Glen Fisher


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Making an application "active" from java (From: Bill Janssen <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.