Example #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);
        }
Example #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
        }
Example #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);
		}
Example #4
0
 public virtual void Invoke(NSAction action, TimeSpan delay)
 {
     var d = new NSAsyncActionDispatcher (action);
                 PerformSelector (NSActionDispatcher.Selector, d, delay.TotalSeconds);
 }
Example #5
0
 public virtual void Invoke(NSAction action, double delay)
 {
     var d = new NSAsyncActionDispatcher (action);
                 PerformSelector (NSActionDispatcher.Selector, d, delay);
 }
		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);
		}
Example #7
0
        public virtual void Invoke(Action action, TimeSpan delay)
        {
            var d = new NSAsyncActionDispatcher(action);

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

            PerformSelector(NSActionDispatcher.Selector, d, delay);
        }
Example #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
 }