internal static void Initialize() { if (mInitialized) { return; } API.AcquireRootMenu(); ConnectEvents(); API.Gestalt(GestaltSelector.SystemVersionMajor, out osMajor); API.Gestalt(GestaltSelector.SystemVersionMinor, out osMinor); API.Gestalt(GestaltSelector.SystemVersionBugFix, out osBugfix); Debug.Print("Running on Mac OS X {0}.{1}.{2}.", osMajor, osMinor, osBugfix); TransformProcessToForeground(); }
internal static void Initialize() { if (Application.mInitialized) { return; } API.AcquireRootMenu(); Application.ConnectEvents(); int num1 = (int)API.Gestalt(GestaltSelector.SystemVersionMajor, out Application.osMajor); int num2 = (int)API.Gestalt(GestaltSelector.SystemVersionMinor, out Application.osMinor); int num3 = (int)API.Gestalt(GestaltSelector.SystemVersionBugFix, out Application.osBugfix); Application.TransformProcessToForeground(); }