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

Comparing BasiliskII/src/MacOSX/Controller.mm (file contents):
Revision 1.7 by nigel, 2003-03-11T11:31:01Z vs.
Revision 1.9 by nigel, 2003-04-01T01:56:41Z

# Line 67 | Line 67
67  
68   - (void) sendEvent: (NSEvent *)event;
69   {
70 <        if ( [self isAnyEmulatorDisplayingSheets] || ! [self isAnyEmulatorRunning] )
70 >        if ( [self isAnyEmulatorDisplayingSheets] ||
71 >                        [[thePrefsEditor window] isVisible] || ! [self isAnyEmulatorRunning] )
72                  [super sendEvent: event];
73          else
74          {
# Line 258 | Line 259
259  
260   // Methods to display documentation:
261  
262 + - (IBAction) HelpHowTo: (id)sender
263 + {
264 +    NSString    *path = [[NSBundle mainBundle] pathForResource: @"HowTo"
265 +                                                        ofType: @"html"];
266 +
267 +    if ( ! path )
268 +        InfoSheet(@"Cannot find HowTo.html", [theEmulator window]);
269 +    else
270 +        if ( ! [[NSWorkspace sharedWorkspace] openFile: path
271 +                                       withApplication: @"TextEdit"] )
272 +            InfoSheet(@"Cannot open HowTo.html with TextEdit", [theEmulator window]);
273 + }
274 +
275   - (IBAction) HelpToDo: (id)sender
276   {
277      NSString    *path = [[NSBundle mainBundle] pathForResource: @"ToDo"
# Line 281 | Line 295
295      else
296          if ( ! [[NSWorkspace sharedWorkspace] openFile: path
297                                         withApplication: @"TextEdit"] )
298 <            InfoSheet(@"Cannot open Versions.html with TextEdit", [theEmulator window]);
298 >            InfoSheet(@"Cannot open Versions.html with TextEdit",
299 >                                                                                                [theEmulator window]);
300   }
301  
302  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines