MonoMac.Foundation.NSObject.InitializeObject C# (CSharp) Method

InitializeObject() private method

private InitializeObject ( bool alloced ) : void
alloced bool
return void
		private void InitializeObject (bool alloced) {
			IsDirectBinding = (this.GetType ().Assembly == NSObject.MonoMacAssembly);
			super_ptr = ClassHandle;	
			Runtime.RegisterNSObject (this, handle);
			if (!alloced)
				Messaging.void_objc_msgSend (handle, selRetain);

#if !OBJECT_REF_TRACKING
			GCHandle h = GCHandle.Alloc (this);
			SetObjCIvar ("__monoObjectGCHandle", (IntPtr) h);
#endif
		}