/// <exclude/> public BlockCookie beginWithCompletionHandler(Action<int> callback) { Action<IntPtr, int> thunk = (IntPtr context, int result) => callback(result); var cookie = new BlockCookie("beginWithCompletionHandler", thunk); Call("beginWithCompletionHandler:", cookie.Block); return cookie; }
/// <exclude/> public BlockCookie addExecutionBlock(Action callback) { Action<IntPtr> thunk = (IntPtr context) => callback(); var cookie = new BlockCookie("addExecutionBlock", thunk); Call("addExecutionBlock:", cookie.Block); return cookie; }
/// <exclude/> public BlockCookie beginSheetModalForWindow_completionHandler(NSWindow window, Action<int> callback) { Action<IntPtr, int> thunk = (IntPtr context, int result) => callback(result); var cookie = new BlockCookie("beginSheetModalForWindow_completionHandler", thunk); Call("beginSheetModalForWindow:completionHandler:", window, cookie.Block); return cookie; }