public void BeginInvokeOnMainThread (NSAction action) { var d = new NSActionDispatcher (action); Messaging.void_objc_msgSend_intptr_intptr_bool (d.Handle, selPerformSelectorOnMainThreadWithObjectWaitUntilDone, NSActionDispatcher.Selector.Handle, d.Handle, false); GC.KeepAlive (d); }