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.5 by nigel, 2002-12-18T11:50:12Z vs.
Revision 1.6 by nigel, 2003-01-10T23:01:48Z

# Line 33 | Line 33
33   #define DEBUG 0
34   #import <debug.h>
35  
36 + #import "misc_macosx.h"
37   #import "video_macosx.h"
38  
39   //
# Line 248 | Line 249
249                  [super sendEvent: event];
250   }
251  
252 +
253 + // Methods to display documentation:
254 +
255 + - (IBAction) HelpToDo: (id)sender
256 + {
257 +    NSString    *path = [[NSBundle mainBundle] pathForResource: @"ToDo"
258 +                                                        ofType: @"html"];
259 +
260 +    if ( ! path )
261 +        InfoSheet(@"Cannot find ToDo.html", [theEmulator window]);
262 +    else
263 +        if ( ! [[NSWorkspace sharedWorkspace] openFile: path
264 +                                       withApplication: @"TextEdit"] )
265 +            InfoSheet(@"Cannot open ToDo.html with TextEdit", [theEmulator window]);
266 + }
267 +
268 + - (IBAction) HelpVersions: (id)sender
269 + {
270 +    NSString    *path = [[NSBundle mainBundle] pathForResource: @"Versions"
271 +                                                        ofType: @"html"];
272 +
273 +    if ( ! path )
274 +        InfoSheet(@"Cannot find Versions.html", [theEmulator window]);
275 +    else
276 +        if ( ! [[NSWorkspace sharedWorkspace] openFile: path
277 +                                       withApplication: @"TextEdit"] )
278 +            InfoSheet(@"Cannot open Versions.html with TextEdit", [theEmulator window]);
279 + }
280 +
281 +
282 + // Menu items which for managing more than one window
283 +
284   #ifdef ENABLE_MULTIPLE
285  
286   - (IBAction) NewEmulator: (id)sender

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines