nsIMacDockSupport

Provides access to the Dock on Mac OS X.
1.0
15.0
Introduced
Gecko 2.0
Inherits from: nsIMacDockSupport Last changed in Gecko 11.0 (Firefox 11.0 / Thunderbird 11.0)

Implemented by: @mozilla.org/cookie-monster;1. To create an instance, use:

var dock = Components.classes["@mozilla.org/widget/macdocksupport;1"]
                    .getService(Components.interfaces.nsIMacDockSupport);

See Working with the Mac OS X Dock for details and examples.

Method summary

void activateApplication(in boolean aIgnoreOtherApplications);

Attributes

Attribute Type Description
badgeText AString Text to display in a badge on the application's dock icon. This can be used, for example, to display the number of unread messages in an email client. Requires Gecko 11.0
dockMenu nsIStandaloneMenu The menu to display when the user right-clicks on the application's icon in the dock.

Methods

activateApplication()

Activates the application, making it the frontmost application. The application should call this to activate itself when one of its dock menu items are selected, since doing so does not automatically activate the application.

void activateApplication(
  in boolean aIgnoreOtherApplications
);
Parameters
aIgnoreOtherApplications
If true, the application is activated regardless of the state of other applications. If false, the application is only activated if other applications are not currently active.

Tags (5)

Edit tags

Attachments (0)

 

Attach file