Changeset 1337 for trunk/examples/novice/N03/exampleN03.cc
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/novice/N03/exampleN03.cc
r1335 r1337 26 26 // 27 27 // $Id: exampleN03.cc,v 1.37 2009/10/30 15:06:01 allison Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // … … 36 36 37 37 #include "Randomize.hh" 38 39 #include "qcoreapplication.h"40 38 41 39 #include "ExN03DetectorConstruction.hh" … … 54 52 #include "G4UIExecutive.hh" 55 53 #endif 56 57 #define MAC_OSX_APP 158 54 59 55 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 112 108 G4UImanager* UImanager = G4UImanager::GetUIpointer(); 113 109 114 115 #ifdef MAC_OSX_APP116 std::string progName = argv[0];117 std::string::size_type pos = progName.find(".app/Contents/MacOS/",0);118 if (pos != std::string::npos) {119 std::string progDir = progName.substr(0,pos+4);120 chdir((progDir+"/Contents/macros").c_str());121 argc = 1;122 }123 #endif124 125 110 if (argc!=1) // batch mode 126 111 { … … 132 117 { // interactive mode : define UI session 133 118 #ifdef G4UI_USE 134 G4UIExecutive* ui = new G4UIExecutive(argc, argv);119 G4UIExecutive* ui = new G4UIExecutive(argc, argv); 135 120 #ifdef G4VIS_USE 136 121 UImanager->ApplyCommand("/control/execute vis.mac");
Note: See TracChangeset
for help on using the changeset viewer.