File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
NativeApp/Apple/Source/Classes/OSX Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -58,12 +58,17 @@ - (void) awakeFromNib
58
58
59
59
[self initApp: self ];
60
60
61
+ #pragma clang diagnostic push
62
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
63
+
61
64
CVDisplayLinkRef displayLink;
62
65
CVDisplayLinkCreateWithActiveCGDisplays (&displayLink);
63
66
[self setDisplayLink: displayLink];
64
67
CVDisplayLinkSetOutputCallback (displayLink, &DisplayLinkCallback, (__bridge void *)self);
65
68
CVDisplayLinkStart (displayLink);
66
69
70
+ #pragma clang diagnostic pop
71
+
67
72
[self setPostsBoundsChangedNotifications: YES ];
68
73
[self setPostsFrameChangedNotifications: YES ];
69
74
[[NSNotificationCenter defaultCenter ] addObserver: self selector: @selector (boundsDidChange: ) name: NSViewBoundsDidChangeNotification object: self ];
Original file line number Diff line number Diff line change @@ -101,6 +101,9 @@ - (BOOL)acceptsFirstResponder
101
101
return YES ; // To make keyboard events work
102
102
}
103
103
104
+ #pragma clang diagnostic push
105
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
106
+
104
107
-(void )destroyApp
105
108
{
106
109
// Stop the display link BEFORE releasing anything in the view
@@ -149,6 +152,8 @@ - (void)startDisplayLink
149
152
}
150
153
}
151
154
155
+ #pragma clang diagnostic pop
156
+
152
157
- (void ) windowWillClose : (NSNotification *)notification
153
158
{
154
159
[self destroyApp ];
You can’t perform that action at this time.
0 commit comments