From e5c0cad3df0f227cee7c904723ff6c7586eeee3b Mon Sep 17 00:00:00 2001 From: Palana Date: Sun, 3 Aug 2014 02:20:55 +0200 Subject: [PATCH] Make OSX test application compatible with current 10.10 beta SDK The NSApplication delegate was changed from a setDelegate/delegate method pair to a property, while the definition of NSApp didn't change (its type is id while the type should be NSApplication* or similar) Fixes jp9000/obs-studio#221 --- test/osx/test.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;