Exemplo n.º 1
0
 public CFRunLoopSource(IntPtr handle, bool ownsHandle)
 {
     if (!ownsHandle)
     {
         CFObject.CFRetain(handle);
     }
     this.handle = handle;
 }
Exemplo n.º 2
0
 internal CFString(IntPtr handle, bool owns)
 {
     this.handle = handle;
     if (!owns)
     {
         CFObject.CFRetain(handle);
     }
 }
Exemplo n.º 3
0
 internal CFRunLoop(IntPtr handle, bool owns)
 {
     if (!owns)
     {
         CFObject.CFRetain(handle);
     }
     this.handle = handle;
 }
Exemplo n.º 4
0
 public CFAllocator(IntPtr handle, bool owns)
 {
     if (!owns)
     {
         CFObject.CFRetain(handle);
     }
     this.handle = handle;
 }
 // If this becomes public for some reason, and more than three instances are created, you should revisit the lookup code
 internal CFNotificationCenter(CFNotificationCenterRef handle, bool ownsHandle)
 {
     if (!ownsHandle)
     {
         CFObject.CFRetain(handle);
     }
     this.handle = handle;
 }
Exemplo n.º 6
0
 public CFMachPort(IntPtr handle, bool ownsHandle)
 {
     if (!ownsHandle)
     {
         CFObject.CFRetain(handle);
     }
     this.handle = handle;
 }
Exemplo n.º 7
0
 internal CFUrl(IntPtr handle, bool owned)
 {
     if (!owned)
     {
         CFObject.CFRetain(handle);
     }
     this.handle = handle;
 }
Exemplo n.º 8
0
 public CFDictionary(IntPtr handle, bool owns)
 {
     if (!owns)
     {
         CFObject.CFRetain(handle);
     }
     this.Handle = handle;
 }
Exemplo n.º 9
0
 internal CFMessagePort(IntPtr handle, bool owns)
 {
     this.handle = handle;
     gch         = GCHandle.Alloc(this);
     if (!owns)
     {
         CFObject.CFRetain(handle);
     }
 }
Exemplo n.º 10
0
 internal CFBundle(IntPtr handle, bool owns)
 {
     if (handle == IntPtr.Zero)
     {
         throw new ArgumentNullException("handle");
     }
     this.handle = handle;
     if (!owns)
     {
         CFObject.CFRetain(this.handle);
     }
 }