Exemplo n.º 1
0
        public void BeginInvokeOnMainThread(NSAction action)
        {
            var d = new NSAsyncActionDispatcher(action);

            Messaging.void_objc_msgSend_intptr_intptr_bool(d.Handle, selPerformSelectorOnMainThreadWithObjectWaitUntilDone,
                                                           NSActionDispatcher.Selector.Handle, d.Handle, false);
        }
Exemplo n.º 2
0
        public void BeginInvokeOnMainThread(Action action)
        {
            var d = new NSAsyncActionDispatcher(action);

#if MONOMAC
            Messaging.void_objc_msgSend_intptr_intptr_bool(d.Handle, Selector.PerformSelectorOnMainThreadWithObjectWaitUntilDoneHandle,
                                                           NSActionDispatcher.Selector.Handle, d.Handle, false);
#else
            Messaging.void_objc_msgSend_intptr_intptr_bool(d.Handle, Selector.GetHandle(Selector.PerformSelectorOnMainThreadWithObjectWaitUntilDone),
                                                           Selector.GetHandle(NSActionDispatcher.SelectorName), d.Handle, false);
#endif
        }
Exemplo n.º 3
0
		public void BeginInvokeOnMainThread (NSAction action)
		{
			var d = new NSAsyncActionDispatcher (action);
			Messaging.void_objc_msgSend_intptr_intptr_bool (d.Handle, selPerformSelectorOnMainThreadWithObjectWaitUntilDone, 
					NSActionDispatcher.Selector.Handle, d.Handle, false);
		}
Exemplo n.º 4
0
 public virtual void Invoke(NSAction action, TimeSpan delay)
 {
     var d = new NSAsyncActionDispatcher (action);
                 PerformSelector (NSActionDispatcher.Selector, d, delay.TotalSeconds);
 }
Exemplo n.º 5
0
 public virtual void Invoke(NSAction action, double delay)
 {
     var d = new NSAsyncActionDispatcher (action);
                 PerformSelector (NSActionDispatcher.Selector, d, delay);
 }
Exemplo n.º 6
0
		public static void ShowAnimationEffect (NSAnimationEffect animationEffect, PointF centerLocation, SizeF size, NSAction endedCallback)
		{
			var d = new NSAsyncActionDispatcher (endedCallback);
			ShowAnimationEffect (animationEffect, centerLocation, size, d, NSActionDispatcher.Selector, IntPtr.Zero);
			GC.KeepAlive (d);
		}
Exemplo n.º 7
0
        public virtual void Invoke(Action action, TimeSpan delay)
        {
            var d = new NSAsyncActionDispatcher(action);

            PerformSelector(NSActionDispatcher.Selector, d, delay.TotalSeconds);
        }
Exemplo n.º 8
0
        public virtual void Invoke(Action action, double delay)
        {
            var d = new NSAsyncActionDispatcher(action);

            PerformSelector(NSActionDispatcher.Selector, d, delay);
        }
Exemplo n.º 9
0
 public void BeginInvokeOnMainThread(NSAction action)
 {
     var d = new NSAsyncActionDispatcher (action);
     #if MONOMAC
     Messaging.void_objc_msgSend_intptr_intptr_bool (d.Handle, Selector.PerformSelectorOnMainThreadWithObjectWaitUntilDoneHandle,
                                                     NSActionDispatcher.Selector.Handle, d.Handle, false);
     #else
     Messaging.void_objc_msgSend_intptr_intptr_bool (d.Handle, Selector.GetHandle (Selector.PerformSelectorOnMainThreadWithObjectWaitUntilDone),
                                                     Selector.GetHandle (NSActionDispatcher.SelectorName), d.Handle, false);
     #endif
 }