We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3710094 commit 2d2caa0Copy full SHA for 2d2caa0
1 file changed
Runtime/Unity.NodeApi.Native.mm
@@ -37,8 +37,8 @@ +(NSBundle *)mainBundleFix
37
{
38
@autoreleasepool
39
40
- id callback = [^{cb(data);} copy];
41
- CADisplayLink *link = [[NSClassFromString(@"NSScreen") mainScreen] displayLinkWithTarget:callback selector:@selector(invoke)];
+ [[NSBundle bundleWithPath:@"/System/Library/Frameworks/AppKit.framework"] load];
+ CADisplayLink *link = [[NSClassFromString(@"NSScreen") mainScreen] displayLinkWithTarget:[^{cb(data);} copy] selector:@selector(invoke)];
42
[link addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSRunLoopCommonModes];
43
}
44
0 commit comments