More swift conversions.

This commit is contained in:
Damiano Galassi committed 2017-10-20 12:29:55 +02:00
1 parent 32f66143a3
commit 64f9178ee6
24 files changed
+260 -309

No files matched your search

+3 -5
View File
@@ -4,7 +4,7 @@
//
#import "SBApplication.h"
#import "SBExceptionAlertController.h"
#import "Subler-Swift.h"
@implementation SBApplication
@@ -37,12 +37,10 @@ static void CrashMyApplication()
// Create a string based on the exception
NSString *exceptionMessage = [NSString stringWithFormat:@"%@\nReason: %@\nUser Info: %@", exception.name, exception.reason, exception.userInfo];
SBExceptionAlertController *alertController = [[SBExceptionAlertController alloc] init];
alertController.exceptionMessage = exceptionMessage;
alertController.exceptionBacktrace = [self _formattedExceptionBacktrace:exception.callStackSymbols];
ExceptionAlertController *alertController = [[ExceptionAlertController alloc] initWithExceptionMessage:exceptionMessage exceptionBacktrace:[self _formattedExceptionBacktrace:exception.callStackSymbols]];
NSInteger result = [alertController runModal];
if (result == SBExceptionAlertControllerResultCrash)
if (result == NSModalResponseStop)
{
CrashMyApplication();
}