Added CallOnInit() which allows the toolkit (wxCocoa) to do a bit of

processing around the real OnInit() call.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2003-07-03 15:32:11 +00:00
parent eee614d37e
commit 7fbc89bb02
2 changed files with 4 additions and 1 deletions

View File

@@ -97,6 +97,9 @@ public:
// class version!
virtual bool Initialize(int& argc, wxChar **argv);
// This gives wxCocoa a chance to call OnInit() with a memory pool in place
virtual bool CallOnInit() { return OnInit(); }
// Called before OnRun(), this is a good place to do initialization -- if
// anything fails, return false from here to prevent the program from
// continuing. The command line is normally parsed here, call the base