Visit Mozilla.org

XPInstall API Reference:Install Object:Methods:gestalt

From MDC

Contents

[edit] gestalt

(Macintosh only) Retrieves information about the operating environment.

[edit] Method of

Install object

[edit] Syntax

int gestalt ( String selector );

[edit] Parameters

The gestalt method takes the following parameters:

selector
The selector code for the information you want.

[edit] Returns

Returns the requested information. The format depends on the select code specified in the selector parameter.

[edit] Description

The gestalt method is a wrapper for the gestalt function of the Macintosh Toolbox. For information on that function, see Inside Macintosh: Operating System Utilities. This method returns null on Unix and Windows platforms.