From ad7b54dab89c1975c22eda4056c6a435b78dc1d1 Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Tue, 8 Oct 2019 12:50:29 -0400 Subject: [PATCH] xcode 11 warnings --- .../MVMCoreNavigationHandler.m | 1 - .../MVMCorePresentViewControllerOperation.m | 14 ++++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationHandler.m b/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationHandler.m index d948d14..260a34f 100644 --- a/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationHandler.m +++ b/MVMCore/MVMCore/PresentationHandling/MVMCoreNavigationHandler.m @@ -287,7 +287,6 @@ operation.delegate = delegate; operation.completionBlock = completionBlock; [self.presentationQueue addOperation:operation]; - } }]; } diff --git a/MVMCore/MVMCore/PresentationHandling/MVMCorePresentViewControllerOperation.m b/MVMCore/MVMCore/PresentationHandling/MVMCorePresentViewControllerOperation.m index 127b271..809f0cc 100644 --- a/MVMCore/MVMCore/PresentationHandling/MVMCorePresentViewControllerOperation.m +++ b/MVMCore/MVMCore/PresentationHandling/MVMCorePresentViewControllerOperation.m @@ -9,6 +9,7 @@ #import "MVMCorePresentViewControllerOperation.h" #import "MVMCoreAlertController.h" #import "MVMCorePresentAnimationOperation.h" +#import "MVMCoreDispatchUtility.h" @interface MVMCorePresentViewControllerOperation () @@ -41,13 +42,14 @@ static void * XXContext = &XXContext; } - (void)main { - - // Always check for cancellation before launching the task. - if ([self checkAndHandleForCancellation]) { - return; - } + [MVMCoreDispatchUtility performBlockOnMainThread:^{ + // Always check for cancellation before launching the task. + if ([self checkAndHandleForCancellation]) { + return; + } - [self present]; + [self present]; + }]; } - (void)present {