33 |
|
#define DEBUG 0 |
34 |
|
#import <debug.h> |
35 |
|
|
36 |
+ |
#import "misc_macosx.h" |
37 |
|
#import "video_macosx.h" |
38 |
|
|
39 |
|
// |
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 |