From 6149e30699b36901715d46a5cef8959625ef399b Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Tue, 18 May 2021 05:55:51 +0100 Subject: Trigger demo quit from applicationWillTerminate Allows for a clean shutdown of the rendering thread (CVDisplayLink) whilst the main thread is exiting --- cube/macOS/cubepp/DemoViewController.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cube/macOS/cubepp/DemoViewController.h') diff --git a/cube/macOS/cubepp/DemoViewController.h b/cube/macOS/cubepp/DemoViewController.h index 7f90cc7e..6d7ca215 100644 --- a/cube/macOS/cubepp/DemoViewController.h +++ b/cube/macOS/cubepp/DemoViewController.h @@ -23,6 +23,9 @@ /** The main view controller for the demo storyboard. */ @interface DemoViewController : NSViewController + +- (void)quit; + @end #pragma mark - -- cgit v1.2.3