Exemplo n.º 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);
        }
Exemplo n.º 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);
        }