public static CADisplayLink Create (NSAction action) { var dispatcher = new NSActionDispatcher (action); var rv = Create (dispatcher, NSActionDispatcher.Selector); rv.dispatcher = dispatcher; return rv; }
public void InvokeOnMainThread(NSAction action) { var d = new NSActionDispatcher(action); Messaging.void_objc_msgSend_intptr_intptr_bool(d.Handle, selPerformSelectorOnMainThreadWithObjectWaitUntilDone, NSActionDispatcher.Selector.Handle, d.Handle, true); GC.KeepAlive(d); }
public void InvokeOnMainThread(Action action) { using (var d = new NSActionDispatcher(action)) { #if MONOMAC Messaging.void_objc_msgSend_intptr_intptr_bool(d.Handle, Selector.PerformSelectorOnMainThreadWithObjectWaitUntilDoneHandle, NSActionDispatcher.Selector.Handle, d.Handle, true); #else Messaging.void_objc_msgSend_intptr_intptr_bool(d.Handle, Selector.GetHandle(Selector.PerformSelectorOnMainThreadWithObjectWaitUntilDone), Selector.GetHandle(NSActionDispatcher.SelectorName), d.Handle, true); #endif } }
public void InvokeOnMainThread (NSAction action) { var d = new NSActionDispatcher (action); Messaging.void_objc_msgSend_intptr_intptr_bool (d.Handle, selPerformSelectorOnMainThreadWithObjectWaitUntilDone, NSActionDispatcher.Selector.Handle, d.Handle, true); GC.KeepAlive (d); }
public static CADisplayLink Create(NSAction action) { var d = new NSActionDispatcher (action); return Create (d, NSActionDispatcher.Selector); }
public void InvokeOnMainThread(NSAction action) { using (var d = new NSActionDispatcher (action)) { #if MONOMAC Messaging.void_objc_msgSend_intptr_intptr_bool (d.Handle, Selector.PerformSelectorOnMainThreadWithObjectWaitUntilDoneHandle, NSActionDispatcher.Selector.Handle, d.Handle, true); #else Messaging.void_objc_msgSend_intptr_intptr_bool (d.Handle, Selector.GetHandle (Selector.PerformSelectorOnMainThreadWithObjectWaitUntilDone), Selector.GetHandle (NSActionDispatcher.SelectorName), d.Handle, true); #endif } }
public void InvokeOnMainThread(NSAction action) { using (var d = new NSActionDispatcher (action)) { Messaging.void_objc_msgSend_intptr_intptr_bool (d.Handle, Selector.PerformSelectorOnMainThreadWithObjectWaitUntilDone, NSActionDispatcher.Selector.Handle, d.Handle, true); } }