From c626d511de31afbd4aa1ab894745a2e989102387 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 17 Jun 2008 09:21:40 -0400 Subject: [PATCH] Have the help menu go to our website instead of saying no help avaliable * Source/AppDelegate.m+h: (openHelpPage:): New method * English.lproj/MainMenu.xib: Change the IBA for the help action --- English.lproj/MainMenu.xib | 26 +++++++++++++++----------- Source/AppDelegate.h | 2 ++ Source/AppDelegate.m | 8 ++++++++ 3 files changed, 25 insertions(+), 11 deletions(-) diff --git a/English.lproj/MainMenu.xib b/English.lproj/MainMenu.xib index 57c1df8..f7a3a6b 100644 --- a/English.lproj/MainMenu.xib +++ b/English.lproj/MainMenu.xib @@ -8,8 +8,8 @@ 352.00 YES + - YES @@ -777,14 +777,6 @@ 39 - - - showHelp: - - - - 122 - terminate: @@ -1025,6 +1017,14 @@ 283 + + + openHelpPage: + + + + 284 + @@ -1598,6 +1598,7 @@ -2.IBPluginDependency 103.IBPluginDependency 103.ImportedFromIB2 + 106.IBEditorWindowLastContentRect 106.IBPluginDependency 106.ImportedFromIB2 111.IBPluginDependency @@ -1738,6 +1739,7 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + {{756, 778}, {174, 23}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -1857,7 +1859,7 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{63, 745}, {317, 20}} + {{500, 801}, {317, 20}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -1893,7 +1895,7 @@ - 283 + 284 @@ -1905,6 +1907,7 @@ YES YES + openHelpPage: openUpdateInformation: showBreakpointWindow: showDebuggerWindow: @@ -1914,6 +1917,7 @@ id id id + id diff --git a/Source/AppDelegate.h b/Source/AppDelegate.h index 6018bc5..4d64faa 100644 --- a/Source/AppDelegate.h +++ b/Source/AppDelegate.h @@ -33,6 +33,8 @@ - (IBAction)showDebuggerWindow:(id)sender; - (IBAction)showBreakpointWindow:(id)sender; +- (IBAction)openHelpPage:(id)sender; + - (IBAction)openUpdateInformation:(id)sender; @end diff --git a/Source/AppDelegate.m b/Source/AppDelegate.m index 6e074f9..0018f2a 100644 --- a/Source/AppDelegate.m +++ b/Source/AppDelegate.m @@ -59,6 +59,14 @@ [[breakpoint window] makeKeyAndOrderFront:self]; } +/** + * Opens the URL to the help page + */ +- (IBAction)openHelpPage:(id)sender +{ + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://www.bluestatic.org/software/macgdbp/help.php"]]; +} + #pragma mark Version Checking /** -- 2.43.5