]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/app.h
osx regrouping
[wxWidgets.git] / include / wx / app.h
index 5f4d622bae14cf5c74ec389c9730fbbba7e69a4c..ef542febc3825c17ff2b6910f23a325fc9c722cc 100644 (file)
@@ -198,6 +198,13 @@ public:
     // allows us to abstract the differences behind the common facade
     wxAppTraits *GetTraits();
 
+    // this function provides safer access to traits object than
+    // wxTheApp->GetTraits() during startup or termination when the global
+    // application object itself may be unavailable
+    //
+    // of course, it still returns NULL in this case and the caller must check
+    // for it
+    static wxAppTraits *GetTraitsIfExists();
 
     // event processing functions
     // --------------------------