Exemplo n.º 1
0
 public static void Init()
 {
     IntPtr psn = IntPtr.Zero;
     pool = new AutoreleasePool ();
     GetCurrentProcess (ref psn);
     TransformProcessType (ref psn, 1);
     SetFrontProcess (ref psn);
 }
        public static void Init()
        {
            IntPtr psn = IntPtr.Zero;

            pool = new AutoreleasePool();
            GetCurrentProcess(ref psn);
            TransformProcessType(ref psn, 1);
            SetFrontProcess(ref psn);
        }
Exemplo n.º 3
0
        /// <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);
        }