public void RegisterDragTypes(string [] types) { MutableArray array = new MutableArray(); foreach (string t in types) { array.Add(new Cocoa.String(t)); } ObjCMessaging.objc_msgSend(NativeObject, "registerForDraggedTypes:", typeof(void), typeof(IntPtr), array.NativeObject); }
public void RegisterDragTypes(string [] types) { MutableArray array = new MutableArray (); foreach (string t in types) { array.Add (new Cocoa.String (t)); } ObjCMessaging.objc_msgSend (NativeObject, "registerForDraggedTypes:", typeof (void), typeof (IntPtr), array.NativeObject); }