Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions | Variables
nsCursorManager.mm File Reference
#import "nsCursorManager.h"
#import "math.h"

Go to the source code of this file.

Classes

category  nsCursorManager(PrivateMethods)
 Private methods for the cursor manager class.

Functions

static BOOL isPantherOrLater ()
 isPantherOrLater Determine whether we are running on Panther (Mac OS X 10.3) or later

Variables

static nsCursorManagergInstance

Function Documentation

static BOOL isPantherOrLater ( ) [static]

isPantherOrLater Determine whether we are running on Panther (Mac OS X 10.3) or later

Returns:
YES if the current operating system version is 10.3 or later, else NO

Definition at line 93 of file nsCursorManager.mm.

{
  static PRBool gInitVer = PR_FALSE;
  static PRBool gOnPantherOrLater = PR_FALSE;
  if(!gInitVer)
  {
    long version;
    OSErr err = ::Gestalt(gestaltSystemVersion, &version);
    gOnPantherOrLater = (err == noErr && version >= 0x00001030);
    gInitVer = PR_TRUE;
  }
  return gOnPantherOrLater;
}

Here is the caller graph for this function:


Variable Documentation

Definition at line 40 of file nsCursorManager.mm.