Help menu in Tux Paint for Mac OS X now links to documentation.
This commit is contained in:
parent
45c1613e07
commit
e4aac9ff0e
2 changed files with 8 additions and 2 deletions
|
|
@ -81,6 +81,12 @@ static NSString *getApplicationName(void)
|
|||
} else
|
||||
[super sendEvent: anEvent];
|
||||
}
|
||||
|
||||
- (void)tuxpaintHelp:(id)sender
|
||||
{
|
||||
NSString* helpPath = [[NSBundle mainBundle] pathForResource:@"README" ofType:@"html" inDirectory:@"html"];
|
||||
[[NSWorkspace sharedWorkspace] openFile:helpPath];
|
||||
}
|
||||
@end
|
||||
|
||||
|
||||
|
|
@ -253,7 +259,7 @@ static void setupHelpMenu(void)
|
|||
|
||||
/* "Help" item */
|
||||
NSString *appName = getApplicationName();
|
||||
menuItem = [[NSMenuItem alloc] initWithTitle:[appName stringByAppendingString:@" Help"] action:@selector(showHelp:) keyEquivalent:@"?"];
|
||||
menuItem = [[NSMenuItem alloc] initWithTitle:[appName stringByAppendingString:@" Help"] action:@selector(tuxpaintHelp:) keyEquivalent:@"?"];
|
||||
[helpMenu addItem:menuItem];
|
||||
[menuItem release];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue