Example #1
0
        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);
        }
Example #2
0
        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);
        }