mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-24 10:32:32 +00:00
Default app for HowTo.html (instead of TextEdit), formatting (spaces->tabs)
This commit is contained in:
parent
75f84b51ce
commit
cb6adb6291
@ -108,9 +108,9 @@
|
||||
//
|
||||
// switch ( NSRunAlertPanel(title, msg, def, alt, other, nil) )
|
||||
// {
|
||||
// case NSAlertDefault: savePrefs();
|
||||
// case NSAlertAlternate: return NSTerminateNow;
|
||||
// case NSAlertOther: return NSTerminateCancel;
|
||||
// case NSAlertDefault: savePrefs();
|
||||
// case NSAlertAlternate: return NSTerminateNow;
|
||||
// case NSAlertOther: return NSTerminateCancel;
|
||||
// }
|
||||
// }
|
||||
|
||||
@ -261,41 +261,40 @@
|
||||
|
||||
- (IBAction) HelpHowTo: (id)sender
|
||||
{
|
||||
NSString *path = [[NSBundle mainBundle] pathForResource: @"HowTo"
|
||||
ofType: @"html"];
|
||||
NSString *path = [[NSBundle mainBundle] pathForResource: @"HowTo"
|
||||
ofType: @"html"];
|
||||
|
||||
if ( ! path )
|
||||
InfoSheet(@"Cannot find HowTo.html", [theEmulator window]);
|
||||
else
|
||||
if ( ! [[NSWorkspace sharedWorkspace] openFile: path
|
||||
withApplication: @"TextEdit"] )
|
||||
InfoSheet(@"Cannot open HowTo.html with TextEdit", [theEmulator window]);
|
||||
if ( ! path )
|
||||
InfoSheet(@"Cannot find HowTo.html", [theEmulator window]);
|
||||
else
|
||||
if ( ! [[NSWorkspace sharedWorkspace] openFile: path] )
|
||||
InfoSheet(@"Cannot open HowTo.html with default app", [theEmulator window]);
|
||||
}
|
||||
|
||||
- (IBAction) HelpToDo: (id)sender
|
||||
{
|
||||
NSString *path = [[NSBundle mainBundle] pathForResource: @"ToDo"
|
||||
ofType: @"html"];
|
||||
NSString *path = [[NSBundle mainBundle] pathForResource: @"ToDo"
|
||||
ofType: @"html"];
|
||||
|
||||
if ( ! path )
|
||||
InfoSheet(@"Cannot find ToDo.html", [theEmulator window]);
|
||||
else
|
||||
if ( ! [[NSWorkspace sharedWorkspace] openFile: path
|
||||
withApplication: @"TextEdit"] )
|
||||
InfoSheet(@"Cannot open ToDo.html with TextEdit", [theEmulator window]);
|
||||
if ( ! path )
|
||||
InfoSheet(@"Cannot find ToDo.html", [theEmulator window]);
|
||||
else
|
||||
if ( ! [[NSWorkspace sharedWorkspace] openFile: path
|
||||
withApplication: @"TextEdit"] )
|
||||
InfoSheet(@"Cannot open ToDo.html with TextEdit", [theEmulator window]);
|
||||
}
|
||||
|
||||
- (IBAction) HelpVersions: (id)sender
|
||||
{
|
||||
NSString *path = [[NSBundle mainBundle] pathForResource: @"Versions"
|
||||
ofType: @"html"];
|
||||
NSString *path = [[NSBundle mainBundle] pathForResource: @"Versions"
|
||||
ofType: @"html"];
|
||||
|
||||
if ( ! path )
|
||||
InfoSheet(@"Cannot find Versions.html", [theEmulator window]);
|
||||
else
|
||||
if ( ! [[NSWorkspace sharedWorkspace] openFile: path
|
||||
withApplication: @"TextEdit"] )
|
||||
InfoSheet(@"Cannot open Versions.html with TextEdit",
|
||||
if ( ! path )
|
||||
InfoSheet(@"Cannot find Versions.html", [theEmulator window]);
|
||||
else
|
||||
if ( ! [[NSWorkspace sharedWorkspace] openFile: path
|
||||
withApplication: @"TextEdit"] )
|
||||
InfoSheet(@"Cannot open Versions.html with TextEdit",
|
||||
[theEmulator window]);
|
||||
}
|
||||
|
||||
@ -398,4 +397,4 @@
|
||||
return count;
|
||||
}
|
||||
|
||||
@end
|
||||
@end
|
||||
|
Loading…
Reference in New Issue
Block a user