diff --git a/test/osx/test.mm b/test/osx/test.mm index 593243527..d88be69e3 100644 --- a/test/osx/test.mm +++ b/test/osx/test.mm @@ -165,11 +165,11 @@ static SceneContext SetupScene() int main() { @autoreleasepool { - [NSApplication sharedApplication]; + NSApplication *app = [NSApplication sharedApplication]; OBSTest *test = [[OBSTest alloc] init]; - [NSApp setDelegate:test]; + app.delegate = test; - [NSApp run]; + [app run]; } return 0;