processing around the real OnInit() call.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21607
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// 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
WX_SUPPRESS_UNUSED_WARN(cleanupOnExit);
// app initialization
- if ( !wxTheApp->OnInit() )
+ if ( !wxTheApp->CallOnInit() )
{
// don't call OnExit() if OnInit() failed
return -1;