|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Christopher Hickman wrote :> > I would like to implement the interface to handle the "About Application" menu
> > item in the Application menu, but I want my code to still work on other platforms.
> > Anyone know how Java handles non-existent interfaces?
You had this answer :
> link your code with MRJToolkitStubs.zip, which you can find in the MRJ SDK...
An extra precaution is to use full qualified names : i.e., instead < MRJApplicationUtils >,
write < com.apple.mrj.MRJApplicationUtils >. This avoid to have an "import" instruction,
which cannot be "tryed / catched".
With these precautions, the app can run on other platforms whithout problems,
and run as expected on Mac.
But, to compile on other platforms, it is always necessary to add <MRJToolkitStubs.zip>
to the compilation classpath. If you want to avoid this necessity, design your code
that the foreign programmer can easy find an "comment" the lines telling MRJ things.
The code compiled so will always run on Mac, but whithout the MRJ special functions.
| References: | |
| >Re: Implementing Platform Specific Interfaces (From: Steve Roy <email@hidden>) | |
| >Re: Implementing Platform Specific Interfaces (From: "Christopher Hickman" <email@hidden>) | |
| >Re: Implementing Platform Specific Interfaces (From: "Patrick Lacour" <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.