From c357c9d91fc12bc771943c5581adb24d09e1e7bb Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Tue, 5 May 2015 15:03:49 -1000 Subject: [PATCH] minor cleanup work --- src/CApplicationCocoa.mm | 2 ++ test/main.cpp | 10 ---------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/CApplicationCocoa.mm b/src/CApplicationCocoa.mm index f972666..9ebaa86 100644 --- a/src/CApplicationCocoa.mm +++ b/src/CApplicationCocoa.mm @@ -5,6 +5,7 @@ @interface AppDelegate : NSObject { boo::IApplicationCallback* callback; + @public NSPanel* aboutPanel; } - (id)initWithCallback:(boo::IApplicationCallback*)cb; @@ -134,6 +135,7 @@ public: [aboutText setAlignment:NSCenterTextAlignment]; [aboutText setString:@"\nRWK Authors\n\nJackoalan\nAntidote\n"]; [aboutPanel setContentView:aboutText]; + appDelegate->aboutPanel = aboutPanel; [app run]; } diff --git a/test/main.cpp b/test/main.cpp index b4a0a86..badad65 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -1,15 +1,5 @@ - -#if __APPLE__ -#include -#else -#endif #include #include -#if _WIN32 - -#else -#include -#endif namespace boo {