Beispiel #1
0
        public T AllocInit <T>() where T : struct
        {
            IntPtr value = ObjectiveCRuntime.IntPtr_objc_msgSend(NativePtr, "alloc");

            ObjectiveCRuntime.objc_msgSend(value, "init");
            return(Unsafe.AsRef <T>(&value));
        }
        public T Alloc <T>() where T : struct
        {
            IntPtr value = ObjectiveCRuntime.IntPtr_objc_msgSend(NativePtr, Selectors.alloc);

            return(Unsafe.AsRef <T>(&value));
        }