Exemplo n.º 1
0
 protected override void Release()
 {
     if (Handle != IntPtr.Zero)
     {
         Messaging.void_objc_msgSend(Handle, Selector.GetHandle("release"));
     }
 }
Exemplo n.º 2
0
 protected virtual void Dispose(bool disposing)
 {
     if (Handle != IntPtr.Zero)
     {
         Messaging.void_objc_msgSend(Handle, Selector.GetHandle("release"));
         Handle = IntPtr.Zero;
     }
 }
Exemplo n.º 3
0
 public BaseWrapper(IntPtr handle, bool owns)
 {
     Handle = handle;
     if (!owns)
     {
         Messaging.void_objc_msgSend(Handle, Selector.GetHandle("retain"));
     }
 }