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

Comparing SheepShaver/src/MacOSX/Launcher/VMListController.mm (file contents):
Revision 1.4 by asvitkine, 2009-08-02T22:37:34Z vs.
Revision 1.5 by asvitkine, 2009-08-02T23:17:18Z

# Line 32 | Line 32 | Drag-drop to re-arrange order of VMs
32   Drag VM from Finder to import
33   Don't show Preferences menu in spawned SheepShaver instances - or make them
34   use the same nib file as this app!
35 Disable buttons on empty selection
35  
36   */
37  
# Line 85 | Line 84 | Disable buttons on empty selection
84          return [vmArray objectAtIndex: r]; // [[vmArray objectAtIndex: r] lastPathComponent];
85   }
86  
87 + - (void) tableViewSelectionDidChange: (NSNotification *) notification
88 + {
89 +        if ([vmList selectedRow] >= 0) {
90 +                [settingsButton setEnabled:YES];
91 +                [launchButton setEnabled:YES];
92 +        } else {
93 +                [settingsButton setEnabled:NO];
94 +                [launchButton setEnabled:NO];
95 +        }
96 + }
97 +
98   //- (NSString *) tableView: (NSTableView *) table toolTipForCell: (NSCell *) cell rect: (NSRectPointer) rect
99   //             tableColumn: (NSTableColumn *) c row: (int) r mouseLocation: (NSPoint) loc
100   //{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines