diff --git a/SheepShaver/src/MacOSX/Launcher/English.lproj/VMListWindow.nib/designable.nib b/SheepShaver/src/MacOSX/Launcher/English.lproj/VMListWindow.nib/designable.nib index 539d4e7d..0c44848d 100644 --- a/SheepShaver/src/MacOSX/Launcher/English.lproj/VMListWindow.nib/designable.nib +++ b/SheepShaver/src/MacOSX/Launcher/English.lproj/VMListWindow.nib/designable.nib @@ -44,7 +44,7 @@ {3.40282e+38, 3.40282e+38} {412, 201} - + 256 YES @@ -63,6 +63,7 @@ 256 {374, 94} + YES @@ -151,8 +152,9 @@ {{1, 1}, {355, 94}} - {{19, 0}, {355, 94}} + + 4 @@ -162,6 +164,7 @@ 256 {{356, 1}, {15, 94}} + _doScroller: 3.947369e-01 @@ -171,6 +174,7 @@ 256 {{-100, -100}, {374, 15}} + YES 1 @@ -180,6 +184,8 @@ {{20, 60}, {372, 96}} + + 146 @@ -191,11 +197,12 @@ 293 {{302, 12}, {96, 32}} + YES 67239424 134217728 - Run + Launch -2038284033 @@ -211,6 +218,7 @@ 293 {{206, 12}, {96, 32}} + YES 67239424 @@ -231,6 +239,7 @@ 293 {{14, 12}, {96, 32}} + YES 67239424 @@ -251,6 +260,7 @@ 268 {{17, 164}, {147, 17}} + YES 68288064 @@ -272,6 +282,7 @@ 293 {{110, 11}, {96, 32}} + YES 67239424 @@ -289,6 +300,8 @@ {412, 201} + + {{0, 0}, {1680, 1028}} {412, 223} @@ -306,14 +319,6 @@ 46 - - - runVirtualMachine: - - - - 47 - newVirtualMachine: @@ -354,6 +359,14 @@ 52 + + + launchVirtualMachine: + + + + 53 + @@ -618,7 +631,7 @@ - 52 + 53 @@ -632,8 +645,8 @@ YES editVirtualMachineSettings: importVirtualMachine: + launchVirtualMachine: newVirtualMachine: - runVirtualMachine: YES diff --git a/SheepShaver/src/MacOSX/Launcher/English.lproj/VMListWindow.nib/keyedobjects.nib b/SheepShaver/src/MacOSX/Launcher/English.lproj/VMListWindow.nib/keyedobjects.nib index f6a05e1b..b93d99cd 100644 Binary files a/SheepShaver/src/MacOSX/Launcher/English.lproj/VMListWindow.nib/keyedobjects.nib and b/SheepShaver/src/MacOSX/Launcher/English.lproj/VMListWindow.nib/keyedobjects.nib differ diff --git a/SheepShaver/src/MacOSX/Launcher/SheepShaverLauncher.xcodeproj/project.pbxproj b/SheepShaver/src/MacOSX/Launcher/SheepShaverLauncher.xcodeproj/project.pbxproj index 060b9130..dc1d5b81 100644 --- a/SheepShaver/src/MacOSX/Launcher/SheepShaverLauncher.xcodeproj/project.pbxproj +++ b/SheepShaver/src/MacOSX/Launcher/SheepShaverLauncher.xcodeproj/project.pbxproj @@ -9,6 +9,7 @@ /* Begin PBXBuildFile section */ 084186B10B3A0515004B1F63 /* VMSettingsController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 084186B00B3A0515004B1F63 /* VMSettingsController.mm */; }; 08AAB16D102614D5007E1230 /* SheepShaver.icns in Resources */ = {isa = PBXBuildFile; fileRef = 08AAB16C102614D5007E1230 /* SheepShaver.icns */; }; + 08AAB1B310261691007E1230 /* SheepShaver in Copy SheepShaver */ = {isa = PBXBuildFile; fileRef = 08AAB1B11026168B007E1230 /* SheepShaver */; }; 08B5FAFD102497FA0047FD1B /* VMSettingsWindow.nib in Resources */ = {isa = PBXBuildFile; fileRef = 08B5FAFB102497FA0047FD1B /* VMSettingsWindow.nib */; }; 08B5FB01102498B00047FD1B /* VMListWindow.nib in Resources */ = {isa = PBXBuildFile; fileRef = 08B5FAFF102498B00047FD1B /* VMListWindow.nib */; }; 08B5FB221024FE320047FD1B /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 08B5FB211024FE320047FD1B /* AppController.mm */; }; @@ -22,11 +23,26 @@ 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; }; /* End PBXBuildFile section */ +/* Begin PBXCopyFilesBuildPhase section */ + 08AAB19E1026164C007E1230 /* Copy SheepShaver */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 6; + files = ( + 08AAB1B310261691007E1230 /* SheepShaver in Copy SheepShaver */, + ); + name = "Copy SheepShaver"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + /* Begin PBXFileReference section */ 084186AF0B3A0515004B1F63 /* VMSettingsController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = VMSettingsController.h; sourceTree = ""; }; 084186B00B3A0515004B1F63 /* VMSettingsController.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = VMSettingsController.mm; sourceTree = ""; }; 089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; 08AAB16C102614D5007E1230 /* SheepShaver.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = SheepShaver.icns; path = ../SheepShaver.icns; sourceTree = SOURCE_ROOT; }; + 08AAB1B11026168B007E1230 /* SheepShaver */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.executable"; name = SheepShaver; path = ../../Unix/SheepShaver; sourceTree = SOURCE_ROOT; }; 08B5FAFC102497FA0047FD1B /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/VMSettingsWindow.nib; sourceTree = ""; }; 08B5FB00102498B00047FD1B /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/VMListWindow.nib; sourceTree = ""; }; 08B5FB201024FE320047FD1B /* AppController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppController.h; sourceTree = ""; }; @@ -133,6 +149,7 @@ 29B97317FDCFA39411CA2CEA /* Resources */ = { isa = PBXGroup; children = ( + 08AAB1B11026168B007E1230 /* SheepShaver */, 08AAB16C102614D5007E1230 /* SheepShaver.icns */, 8D1107310486CEB800E47090 /* Info.plist */, 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */, @@ -162,6 +179,7 @@ 8D1107290486CEB800E47090 /* Resources */, 8D11072C0486CEB800E47090 /* Sources */, 8D11072E0486CEB800E47090 /* Frameworks */, + 08AAB19E1026164C007E1230 /* Copy SheepShaver */, ); buildRules = ( ); diff --git a/SheepShaver/src/MacOSX/Launcher/VMListController.h b/SheepShaver/src/MacOSX/Launcher/VMListController.h index 1dee941b..fe4f7272 100644 --- a/SheepShaver/src/MacOSX/Launcher/VMListController.h +++ b/SheepShaver/src/MacOSX/Launcher/VMListController.h @@ -33,6 +33,6 @@ - (IBAction) newVirtualMachine: (id) sender; - (IBAction) importVirtualMachine: (id) sender; - (IBAction) editVirtualMachineSettings: (id) sender; -- (IBAction) runVirtualMachine: (id) sender; +- (IBAction) launchVirtualMachine: (id) sender; @end diff --git a/SheepShaver/src/MacOSX/Launcher/VMListController.mm b/SheepShaver/src/MacOSX/Launcher/VMListController.mm index 415aa9f8..8d036fc2 100644 --- a/SheepShaver/src/MacOSX/Launcher/VMListController.mm +++ b/SheepShaver/src/MacOSX/Launcher/VMListController.mm @@ -45,19 +45,19 @@ - (void) awakeFromNib { - [vmList setDataSource: self]; + [vmList setDataSource: self]; //[vmList setDelegate: self]; - [vmList reloadData]; + [vmList reloadData]; } - (int) numberOfRowsInTableView: (NSTableView *) table { - return [vmArray count]; + return [vmArray count]; } - (id) tableView: (NSTableView *) table objectValueForTableColumn: (NSTableColumn *) c row: (int) r { - return [vmArray objectAtIndex: r]; // [[vmArray objectAtIndex: r] lastPathComponent]; + return [vmArray objectAtIndex: r]; // [[vmArray objectAtIndex: r] lastPathComponent]; } //- (NSString *) tableView: (NSTableView *) table toolTipForCell: (NSCell *) cell rect: (NSRectPointer) rect @@ -121,13 +121,20 @@ - (IBAction) editVirtualMachineSettings:(id)sender { int selectedRow = [vmList selectedRow]; - if (selectedRow >= 0) { + if (selectedRow >= 0) { [[VMSettingsController sharedInstance] editSettingsFor:[vmArray objectAtIndex:selectedRow] sender:sender]; - } + } } -- (IBAction) runVirtualMachine:(id)sender +- (IBAction) launchVirtualMachine:(id)sender { + int selectedRow = [vmList selectedRow]; + if (selectedRow >= 0) { + NSTask *sheep = [[NSTask alloc] init]; + [sheep setLaunchPath:[[NSBundle mainBundle] pathForAuxiliaryExecutable:@"SheepShaver"]]; + [sheep setArguments:[NSArray arrayWithObject:[vmArray objectAtIndex:selectedRow]]]; + [sheep launch]; + } } @end