108 |
|
// |
109 |
|
// switch ( NSRunAlertPanel(title, msg, def, alt, other, nil) ) |
110 |
|
// { |
111 |
< |
// case NSAlertDefault: savePrefs(); |
112 |
< |
// case NSAlertAlternate: return NSTerminateNow; |
113 |
< |
// case NSAlertOther: return NSTerminateCancel; |
111 |
> |
// case NSAlertDefault: savePrefs(); |
112 |
> |
// case NSAlertAlternate: return NSTerminateNow; |
113 |
> |
// case NSAlertOther: return NSTerminateCancel; |
114 |
|
// } |
115 |
|
// } |
116 |
|
|
261 |
|
|
262 |
|
- (IBAction) HelpHowTo: (id)sender |
263 |
|
{ |
264 |
< |
NSString *path = [[NSBundle mainBundle] pathForResource: @"HowTo" |
265 |
< |
ofType: @"html"]; |
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]); |
267 |
> |
if ( ! path ) |
268 |
> |
InfoSheet(@"Cannot find HowTo.html", [theEmulator window]); |
269 |
> |
else |
270 |
> |
if ( ! [[NSWorkspace sharedWorkspace] openFile: path] ) |
271 |
> |
InfoSheet(@"Cannot open HowTo.html with default app", [theEmulator window]); |
272 |
|
} |
273 |
|
|
274 |
|
- (IBAction) HelpToDo: (id)sender |
275 |
|
{ |
276 |
< |
NSString *path = [[NSBundle mainBundle] pathForResource: @"ToDo" |
277 |
< |
ofType: @"html"]; |
276 |
> |
NSString *path = [[NSBundle mainBundle] pathForResource: @"ToDo" |
277 |
> |
ofType: @"html"]; |
278 |
|
|
279 |
< |
if ( ! path ) |
280 |
< |
InfoSheet(@"Cannot find ToDo.html", [theEmulator window]); |
281 |
< |
else |
282 |
< |
if ( ! [[NSWorkspace sharedWorkspace] openFile: path |
283 |
< |
withApplication: @"TextEdit"] ) |
284 |
< |
InfoSheet(@"Cannot open ToDo.html with TextEdit", [theEmulator window]); |
279 |
> |
if ( ! path ) |
280 |
> |
InfoSheet(@"Cannot find ToDo.html", [theEmulator window]); |
281 |
> |
else |
282 |
> |
if ( ! [[NSWorkspace sharedWorkspace] openFile: path |
283 |
> |
withApplication: @"TextEdit"] ) |
284 |
> |
InfoSheet(@"Cannot open ToDo.html with TextEdit", [theEmulator window]); |
285 |
|
} |
286 |
|
|
287 |
|
- (IBAction) HelpVersions: (id)sender |
288 |
|
{ |
289 |
< |
NSString *path = [[NSBundle mainBundle] pathForResource: @"Versions" |
290 |
< |
ofType: @"html"]; |
289 |
> |
NSString *path = [[NSBundle mainBundle] pathForResource: @"Versions" |
290 |
> |
ofType: @"html"]; |
291 |
|
|
292 |
< |
if ( ! path ) |
293 |
< |
InfoSheet(@"Cannot find Versions.html", [theEmulator window]); |
294 |
< |
else |
295 |
< |
if ( ! [[NSWorkspace sharedWorkspace] openFile: path |
296 |
< |
withApplication: @"TextEdit"] ) |
297 |
< |
InfoSheet(@"Cannot open Versions.html with TextEdit", |
292 |
> |
if ( ! path ) |
293 |
> |
InfoSheet(@"Cannot find Versions.html", [theEmulator window]); |
294 |
> |
else |
295 |
> |
if ( ! [[NSWorkspace sharedWorkspace] openFile: path |
296 |
> |
withApplication: @"TextEdit"] ) |
297 |
> |
InfoSheet(@"Cannot open Versions.html with TextEdit", |
298 |
|
[theEmulator window]); |
299 |
|
} |
300 |
|
|
397 |
|
return count; |
398 |
|
} |
399 |
|
|
400 |
< |
@end |
400 |
> |
@end |