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); }
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); }
public static NSObject GetWeakDelegate(this IDoSomthingClass This) { return(Runtime.GetNSObject(global::ApiDefinition.Messaging.IntPtr_objc_msgSend(This.Handle, Selector.GetHandle("delegate")))); }