From c574f222a00f38b7e2f6327e79e6fb038d494d62 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 9 Jul 2008 13:58:00 -0400 Subject: [PATCH] Remove the old version checking system that we wrote ourselves * Source/AppDelegate.m+h: Removed updater outlets (applicationDidFinishLaunching:): Removed (versionCheck:): Removed (openUpdateInformation:): Removed * English.lproj/MainMenu.xib: Removed the update window --- English.lproj/MainMenu.xib | 282 +------------------------------------ Source/AppDelegate.h | 5 - Source/AppDelegate.m | 54 ------- 3 files changed, 7 insertions(+), 334 deletions(-) diff --git a/English.lproj/MainMenu.xib b/English.lproj/MainMenu.xib index a46c18f..8320aaa 100644 --- a/English.lproj/MainMenu.xib +++ b/English.lproj/MainMenu.xib @@ -78,7 +78,7 @@ - + Q2hlY2sgRm9yIFVwZGF0ZXPigKY @@ -647,129 +647,13 @@ AppDelegate - - 1 - 2 - {{196, 357}, {480, 153}} - 603979776 - New Version Avaliable! - NSWindow - - {3.40282e+38, 3.40282e+38} - - - 256 - - YES - - - 268 - {{17, 48}, {446, 60}} - - YES - - 67239424 - 272629760 - Version %@ of MacGDBp is now avaliable for download. Please download it at your earliest convenience. - - LucidaGrande - 1.300000e+01 - 1044 - - - - 6 - System - controlColor - - 3 - MC42NjY2NjY2OQA - - - - 6 - System - controlTextColor - - 3 - MAA - - - - - - - 268 - {{17, 116}, {440, 17}} - - YES - - 67239488 - 272630784 - There is a new version of MacGDBp Avaliable - - LucidaGrande-Bold - 1.300000e+01 - 16 - - - - - - - - - 268 - {{299, 12}, {167, 32}} - - YES - - -2080244224 - 134217728 - More information... - - - -2038284033 - 129 - - DQ - 200 - 25 - - - - - 268 - {{153, 12}, {146, 32}} - - YES - - 67239424 - 134217728 - Remind Me Later - - - -2038284033 - 129 - - - 200 - 25 - - - - {480, 153} - - {{0, 0}, {1440, 878}} - {3.40282e+38, 3.40282e+38} - BreakpointWindowController DebuggerWindowController - + SUUpdater @@ -1000,38 +884,6 @@ 269 - - - orderOut: - - - - 280 - - - - openUpdateInformation: - - - - 281 - - - - updateWindow - - - - 282 - - - - updateString - - - - 283 - openHelpPage: @@ -1155,7 +1007,7 @@ - + @@ -1535,83 +1387,6 @@ - - 270 - - - YES - - - - - - 271 - - - YES - - - - - - - - - 272 - - - YES - - - - - - 273 - - - YES - - - - - - 274 - - - YES - - - - - - 275 - - - YES - - - - - - 276 - - - - - 277 - - - - - 278 - - - - - 279 - - - 286 @@ -1624,12 +1399,12 @@ 288 - + 289 - + @@ -1748,20 +1523,6 @@ 264.IBPluginDependency 265.IBPluginDependency 268.IBPluginDependency - 270.IBEditorWindowLastContentRect - 270.IBPluginDependency - 270.IBWindowTemplateEditedContentRect - 270.NSWindowTemplate.visibleAtLaunch - 270.editorWindowContentRectSynchronizationRect - 271.IBPluginDependency - 272.IBPluginDependency - 273.IBPluginDependency - 274.IBPluginDependency - 275.IBPluginDependency - 276.IBPluginDependency - 277.IBPluginDependency - 278.IBPluginDependency - 279.IBPluginDependency 286.IBPluginDependency 287.IBPluginDependency 288.IBPluginDependency @@ -1893,20 +1654,6 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{382, 522}, {480, 153}} - com.apple.InterfaceBuilder.CocoaPlugin - {{382, 522}, {480, 153}} - - {{466, 471}, {480, 153}} - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -1960,7 +1707,6 @@ YES openHelpPage: - openUpdateInformation: showBreakpointWindow: showDebuggerWindow: showPreferences: @@ -1971,20 +1717,6 @@ id id id - id - - - - YES - - YES - updateString - updateWindow - - - YES - NSTextField - NSWindow @@ -2170,7 +1902,7 @@ NSObject - + IBDocumentRelativeSource ../Sparkle.framework/Versions/A/Headers/SUUpdater.h @@ -2186,7 +1918,7 @@ delegate id - + diff --git a/Source/AppDelegate.h b/Source/AppDelegate.h index 1b56a78..79201f2 100644 --- a/Source/AppDelegate.h +++ b/Source/AppDelegate.h @@ -24,9 +24,6 @@ DebuggerWindowController *debugger; BreakpointWindowController *breakpoint; PreferencesController *prefs; - - IBOutlet NSWindow *updateWindow; - IBOutlet NSTextField *updateString; } @property(readonly) DebuggerWindowController *debugger; @@ -38,6 +35,4 @@ - (IBAction)openHelpPage:(id)sender; -- (IBAction)openUpdateInformation:(id)sender; - @end diff --git a/Source/AppDelegate.m b/Source/AppDelegate.m index e595867..ba1d1a0 100644 --- a/Source/AppDelegate.m +++ b/Source/AppDelegate.m @@ -44,14 +44,6 @@ [dict release]; } -/** - * When the application has finished loading, show the connection dialog - */ -- (void)applicationDidFinishLaunching:(NSNotification *)notif -{ - [NSThread detachNewThreadSelector:@selector(versionCheck:) toTarget:self withObject:self]; -} - /** * Shows the debugger window */ @@ -87,50 +79,4 @@ [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://www.bluestatic.org/software/macgdbp/help.php"]]; } -#pragma mark Version Checking - -/** - * Checks and sees if the current version is the most up-to-date one - */ -- (void)versionCheck:(id)sender -{ - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - - NSMutableString *version = [NSMutableString stringWithString:[[[NSBundle mainBundle] infoDictionary] valueForKey:@"CFBundleShortVersionString"]]; - [version replaceOccurrencesOfString:@" " withString:@"-" options:NSLiteralSearch range:NSMakeRange(0, [version length])]; - - NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://www.bluestatic.org/versioncheck.php?prod=macgdbp&ver=%@", version]]; - NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:10]; - NSURLResponse *response; - NSData *result = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:nil]; - - if (result == nil) - { - [pool release]; - return; - } - - NSXMLDocument *xml = [[NSXMLDocument alloc] initWithData:result options:0 error:nil]; - NSXMLNode *comp = [[xml rootElement] childAtIndex:0]; - if ([[comp name] isEqualToString:@"update"]) - { - [updateString setStringValue:[NSString stringWithFormat:[updateString stringValue], [comp stringValue]]]; - [updateWindow makeKeyAndOrderFront:self]; - [updateWindow center]; - } - - [xml release]; - - [pool release]; -} - - -/** - * Opens the URL to the download page - */ -- (IBAction)openUpdateInformation:(id)sender -{ - [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://www.bluestatic.org/software/macgdbp/"]]; -} - @end -- 2.22.5