[ BUILD # : 200509151800 ]
[ JDK VERSION : 1.5.0_02 ]
In the FeedReader Sample on Mac OS X the Application Menu Items
like "About feedreader" and "quite feedreader" to nothing.
If this work, File->Exit and Help->About should not show.
To get high-fidelity Mac OS X support you will need to do more work. See e.g.
ide/applemenu/ in nb.org sources (used for the NB IDE). No current plans to
bundle something like this in the module build harness; too complex, and too
tied to the details of the app (i.e. ide/applemenu could not be used unmodified
in a platform app since it deals with some IDE-specific things).
Okay, that i can understand. nevertheless I insist on that it would be nice and save a lot of time.
But here why i reopen issue:
The quite action to nothing. Also Java Application without adjustments can be quite by this. Why is that?
Can reopen, but we're not going to touch it anytime soon unless someone
contributes the (possibly substantial) amount of code and configuration that
would be required.
Re. "The quite action to nothing. Also Java Application without adjustments can
be quite by this. Why is that?" - I'm sorry, I can't decipher that, could you
rephrase in concrete terms please? The usual: what you clicked on / typed /
etc., what you saw happen, what you expected to see happen instead.
What i mean was: run SwingSet2, go in Application Menu and click "Quite SwingSet2" and it close
But run feedreader, go in Application Menu and click "Quite feedreader" and nothing happens.
Don't know why it works in SwingSet2. In the NB IDE, Quit is explicitly bound by
ide/applemenu. Can't really guess what is going on without knowing how Apple
makes their default binding work.
I try create a Module Project applemenu and add it to Module Suite feedreader-suite. After that i copy all
from netbeans-src/ide/applemenu in it.
Running now feedreader demo works fine. Application Menu -> "About feedreader" and Application Menu
-> "Quite feedreader" works without problems.
Only that now in the Application Menu also the "Preferences" Item is show. But i think there are no so big
changes to do in applemenu to check if the Application has a Preferences Dialog or not.
Re: "(i.e. ide/applemenu could not be used unmodified in a platform app since it deals with some IDE-
specific things)." Maybe have i overlooked something?
Created attachment 24916 [details]
feedreader demo with applemenu
Needs further cleanup, e.g. to remove DefaultGlobalKeyBindings.xml; remove
OPENFILE_ACTION (unless openfile is simply moved into the platform, which is
quite possible); and fix OPTIONS_ACTION to refer to the new Options dialog.
Also need to figure out how to have such a module in the platform *and* an
additional module in nb5.0 with the IDE-specific overrides.
Probably need someone who runs Mac OS X to produce a complete tested source
patch (lots of details to take care of, since involves adding and refactoring
existing modules). Not sure yet who should do that.
Mac OS X stuff.