258 |
|
|
259 |
|
// Methods to display documentation: |
260 |
|
|
261 |
+ |
- (IBAction) HelpHowTo: (id)sender |
262 |
+ |
{ |
263 |
+ |
NSString *path = [[NSBundle mainBundle] pathForResource: @"HowTo" |
264 |
+ |
ofType: @"html"]; |
265 |
+ |
|
266 |
+ |
if ( ! path ) |
267 |
+ |
InfoSheet(@"Cannot find HowTo.html", [theEmulator window]); |
268 |
+ |
else |
269 |
+ |
if ( ! [[NSWorkspace sharedWorkspace] openFile: path |
270 |
+ |
withApplication: @"TextEdit"] ) |
271 |
+ |
InfoSheet(@"Cannot open HowTo.html with TextEdit", [theEmulator window]); |
272 |
+ |
} |
273 |
+ |
|
274 |
|
- (IBAction) HelpToDo: (id)sender |
275 |
|
{ |
276 |
|
NSString *path = [[NSBundle mainBundle] pathForResource: @"ToDo" |
294 |
|
else |
295 |
|
if ( ! [[NSWorkspace sharedWorkspace] openFile: path |
296 |
|
withApplication: @"TextEdit"] ) |
297 |
< |
InfoSheet(@"Cannot open Versions.html with TextEdit", [theEmulator window]); |
297 |
> |
InfoSheet(@"Cannot open Versions.html with TextEdit", |
298 |
> |
[theEmulator window]); |
299 |
|
} |
300 |
|
|
301 |
|
|