internal static NSArray ArrayWithObjects(IntPtr[] objs) { var mutableArray = Cocoa.SendIntPtr(mutable_class_pointer, sel_array); foreach (IntPtr obj in objs) { Cocoa.SendVoid(mutableArray, sel_add_object, obj); } return(new NSArray(mutableArray)); }
internal static void AddObserver(IntPtr target, IntPtr selector, IntPtr name, IntPtr obj) => Cocoa.SendVoid(Handle, sel_add_observer, target, selector, name, obj);