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:
Robert Roebling 2001-11-28 16:28:37 +00:00
parent 92749d6a37
commit 89ebf1c919
4 changed files with 946 additions and 948 deletions

View File

@ -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!") );
#ifdef __WXMAC__
argc = 0 ; // currently we don't support files as parameters
#ifndef __DARWIN__
argc = 0 ; // currently we don't support files as parameters
#endif
// we could try to get the open apple events here to adjust argc and argv better
wxTheApp->argc = argc;
wxTheApp->argv = argv;
wxTheApp->argc = argc;
wxTheApp->argv = argv;
// GUI-specific initialization, such as creating an app context.
wxEntryInitGui();
// we could try to get the open apple events here to adjust argc and argv better
// GUI-specific initialization, such as creating an app context.
wxEntryInitGui();
// Here frames insert themselves automatically
// into wxTopLevelWindows by getting created
// in OnInit().
// Here frames insert themselves automatically
// into wxTopLevelWindows by getting created
// in OnInit().
int retValue = 0;
int retValue = 0;
if ( wxTheApp->OnInit() )
{

View File

@ -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!") );
#ifdef __WXMAC__
argc = 0 ; // currently we don't support files as parameters
#ifndef __DARWIN__
argc = 0 ; // currently we don't support files as parameters
#endif
// we could try to get the open apple events here to adjust argc and argv better
wxTheApp->argc = argc;
wxTheApp->argv = argv;
wxTheApp->argc = argc;
wxTheApp->argv = argv;
// GUI-specific initialization, such as creating an app context.
wxEntryInitGui();
// we could try to get the open apple events here to adjust argc and argv better
// GUI-specific initialization, such as creating an app context.
wxEntryInitGui();
// Here frames insert themselves automatically
// into wxTopLevelWindows by getting created
// in OnInit().
// Here frames insert themselves automatically
// into wxTopLevelWindows by getting created
// in OnInit().
int retValue = 0;
int retValue = 0;
if ( wxTheApp->OnInit() )
{

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff