Пример #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);
        }
Пример #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);
        }