コード例 #1
0
ファイル: Application.cs プロジェクト: mono/cocoa-sharp
 public static void Init()
 {
     IntPtr psn = IntPtr.Zero;
     pool = new AutoreleasePool ();
     GetCurrentProcess (ref psn);
     TransformProcessType (ref psn, 1);
     SetFrontProcess (ref psn);
 }
コード例 #2
0
        public static void Init()
        {
            IntPtr psn = IntPtr.Zero;

            pool = new AutoreleasePool();
            GetCurrentProcess(ref psn);
            TransformProcessType(ref psn, 1);
            SetFrontProcess(ref psn);
        }
コード例 #3
0
ファイル: cocoasharp.cs プロジェクト: divyang4481/nobjective
        /// <summary>
        /// Used for regression tests.
        /// </summary>
        public static void test_regression()
        {
            var test = new CocoaSharpTest();

            test.OnBeginTest += () => { _pool = new AutoreleasePool(); };
            test.OnEndTest   += () => { _pool.Dispose(); };

            test.TestAll(typeof(AutoreleasePool).Assembly);
        }