コード例 #1
0
        public static void DoSomthingNew(this IDoSomthingClass This, string from)
        {
            if (from == null)
            {
                throw new ArgumentNullException("from");
            }
            var nsfrom = NSString.CreateNative(from);

            global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("doSomthingNew:"), nsfrom);
            NSString.ReleaseNative(nsfrom);
        }
コード例 #2
0
 public static void SetWeakDelegate(this IDoSomthingClass This, NSObject value)
 {
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("setDelegate:"), value == null ? IntPtr.Zero : value.Handle);
 }
コード例 #3
0
 public static NSObject GetWeakDelegate(this IDoSomthingClass This)
 {
     return(Runtime.GetNSObject(global::ApiDefinition.Messaging.IntPtr_objc_msgSend(This.Handle, Selector.GetHandle("delegate"))));
 }