ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/MacOSX/Launcher/AppController.mm
(Generate patch)

Comparing SheepShaver/src/MacOSX/Launcher/AppController.mm (file contents):
Revision 1.1 by asvitkine, 2009-08-02T18:34:57Z vs.
Revision 1.2 by asvitkine, 2009-08-06T18:12:24Z

# Line 26 | Line 26
26   - (void) awakeFromNib
27   {
28          [self openVirtualMachinesList:self];
29 +        [NSApp setDelegate:self];
30   }
31  
32   - (IBAction) openVirtualMachinesList: (id) sender
# Line 33 | Line 34
34          [[VMListController sharedInstance] showWindow:sender];
35   }
36  
37 + - (BOOL) applicationShouldHandleReopen: (NSApplication *) app hasVisibleWindows: (BOOL) hasVisible
38 + {
39 +        if (!hasVisible)
40 +                [self openVirtualMachinesList:self];
41 +        return YES;
42 + }
43 +
44   @end

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines