Support for Apple Extensions

Paul Taylor paul_t100 at fastmail.fm
Fri Jul 5 03:01:05 PDT 2013


On 05/07/2013 10:04, Alan Bateman wrote:
> On 05/07/2013 09:53, Paul Taylor wrote:
>> This was discussed this in some detail last Autumn, and we were 
>> assured that support would be continued, and on a postive note from 
>> my own experience Ive found everything I need  does all work on the 
>> 1.7.0_40_ea-b291 release. Alan I would suggest you discuss this with 
>> the oracle developers who were looking at this back then. At the time 
>> I also requested it should be properly documented but the response on 
>> that was pretty divided.
> I think the right thing is to understand which of these com.apple APIs 
> are commonly used as it may may sense to add standard APIs for some of 
> these cases. If you links to the discussion from "last Autumn" that 
> would be useful.
>
> -Alan
>
Ok, this was the starting point

http://lists.apple.com/archives/java-dev/2012/Aug/msg00004.html

sorry cant find the one about documententation.


The Features I am successfully using in Java 7 OSX with the latest 
preview release are:

-Dapple.laf.useScreenMenuBar=true for OSX menu bar

-Dapple.awt.brushMetalLook=true for  a brushed metal look

FileManager.moveToTrash(file) to move files to trash rather than hard delete

Application.getApplication().openHelpViewer() to open Apple Help book

Application.getApplication().setDockIconBadge() to set a count of files 
processed  on my dock icon

Application.getApplication().setAboutHandler() to handle About correctly

Application.getApplication().setPreferencesHandler to handle preferences 
correctly

Application.getApplication().setQuitHandler

Application.getApplication().disableSuddenTermination();

Application.getApplication().setQuitStrategy();
for application exiting

Application.getApplication().requestUserAttention() to bring things to 
usee attention

System.setProperty("apple.awt.fileDialogForDirectories", "true");
FileDialog chooser = new FileDialog(SongKong.mainWindow.frame);
to allow folder to be open (not files) using a native dialog

FileManager.getPathToApplicationBundle() to find said location

In my Java 6 application I make use of some of the specific Apple client 
properties for button types such as the search button and the mini 
controls. I would also like to see some things that the Quaqua project 
http://www.randelshofer.ch/quaqua/guide/index.html supports such as 
Jsheet incorporated into the core api.



Paul


More information about the macosx-port-dev mailing list