Darwin has commandline args.
Position controls right under Mac. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -661,24 +661,23 @@ int wxEntry( int argc, char *argv[] , bool enterLoop )
|
|||||||
|
|
||||||
wxCHECK_MSG( wxTheApp, 0, wxT("You have to define an instance of wxApp!") );
|
wxCHECK_MSG( wxTheApp, 0, wxT("You have to define an instance of wxApp!") );
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifndef __DARWIN__
|
||||||
argc = 0 ; // currently we don't support files as parameters
|
argc = 0 ; // currently we don't support files as parameters
|
||||||
#endif
|
#endif
|
||||||
|
// we could try to get the open apple events here to adjust argc and argv better
|
||||||
|
|
||||||
wxTheApp->argc = argc;
|
wxTheApp->argc = argc;
|
||||||
wxTheApp->argv = argv;
|
wxTheApp->argv = argv;
|
||||||
|
|
||||||
// GUI-specific initialization, such as creating an app context.
|
// GUI-specific initialization, such as creating an app context.
|
||||||
wxEntryInitGui();
|
wxEntryInitGui();
|
||||||
|
|
||||||
// we could try to get the open apple events here to adjust argc and argv better
|
|
||||||
|
|
||||||
|
|
||||||
// Here frames insert themselves automatically
|
// Here frames insert themselves automatically
|
||||||
// into wxTopLevelWindows by getting created
|
// into wxTopLevelWindows by getting created
|
||||||
// in OnInit().
|
// in OnInit().
|
||||||
|
|
||||||
int retValue = 0;
|
int retValue = 0;
|
||||||
|
|
||||||
if ( wxTheApp->OnInit() )
|
if ( wxTheApp->OnInit() )
|
||||||
{
|
{
|
||||||
|
@@ -661,24 +661,23 @@ int wxEntry( int argc, char *argv[] , bool enterLoop )
|
|||||||
|
|
||||||
wxCHECK_MSG( wxTheApp, 0, wxT("You have to define an instance of wxApp!") );
|
wxCHECK_MSG( wxTheApp, 0, wxT("You have to define an instance of wxApp!") );
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifndef __DARWIN__
|
||||||
argc = 0 ; // currently we don't support files as parameters
|
argc = 0 ; // currently we don't support files as parameters
|
||||||
#endif
|
#endif
|
||||||
|
// we could try to get the open apple events here to adjust argc and argv better
|
||||||
|
|
||||||
wxTheApp->argc = argc;
|
wxTheApp->argc = argc;
|
||||||
wxTheApp->argv = argv;
|
wxTheApp->argv = argv;
|
||||||
|
|
||||||
// GUI-specific initialization, such as creating an app context.
|
// GUI-specific initialization, such as creating an app context.
|
||||||
wxEntryInitGui();
|
wxEntryInitGui();
|
||||||
|
|
||||||
// we could try to get the open apple events here to adjust argc and argv better
|
|
||||||
|
|
||||||
|
|
||||||
// Here frames insert themselves automatically
|
// Here frames insert themselves automatically
|
||||||
// into wxTopLevelWindows by getting created
|
// into wxTopLevelWindows by getting created
|
||||||
// in OnInit().
|
// in OnInit().
|
||||||
|
|
||||||
int retValue = 0;
|
int retValue = 0;
|
||||||
|
|
||||||
if ( wxTheApp->OnInit() )
|
if ( wxTheApp->OnInit() )
|
||||||
{
|
{
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user