A list of windows in the dock menu?

Scott Kovatch scott.kovatch at oracle.com
Thu Mar 1 08:22:04 PST 2012

On Mar 1, 2012, at 6:44 AM, Anthony Petrov wrote:

> Hi Mike,
> The dock menu for a Java app displays a list of Java top-level windows when run with Apple JDK. However, with 7u4 the list won't show.
> According to the documentation, app's "open documents" are listed in the menu. Does this mean we have to associate an NSDocument with each instance of AWTWindow class? Or is there any other way to make the list visible in the menu?

All you need to do is have a menu named 'Window' in the nib file, and Cocoa will take care of updating it with all of the open windows, and adding it to the dock icon. The window has to have a title, I believe. That's how it used to work, anyway.

Aren't we using the shared DefaultApp.nib?

-- Scott K.

More information about the macosx-port-dev mailing list