Core/Source/GrowlPreferencePane.m
changeset 4261 48b7c994f6c8
parent 4246 4f52d1d98978
child 4271 3de332e1d97f
     1.1 --- a/Core/Source/GrowlPreferencePane.m	Tue Jul 07 11:42:50 2009 -0400
     1.2 +++ b/Core/Source/GrowlPreferencePane.m	Sat Aug 01 20:50:32 2009 -0400
     1.3 @@ -230,45 +230,11 @@
     1.4   */
     1.5  - (IBAction) checkVersion:(id)sender {
     1.6  #pragma unused(sender)
     1.7 -	[growlVersionProgress startAnimation:self];
     1.8 -
     1.9 -	if (!versionCheckURL)
    1.10 -		versionCheckURL = [[NSURL alloc] initWithString:@"http://growl.info/version.xml"];
    1.11 -
    1.12 -	NSBundle *bundle = [self bundle];
    1.13 -	NSDictionary *infoDict = [bundle infoDictionary];
    1.14 -	NSString *currVersionNumber = [infoDict objectForKey:(NSString *)kCFBundleVersionKey];
    1.15 -	NSDictionary *productVersionDict = [[NSDictionary alloc] initWithContentsOfURL:versionCheckURL];
    1.16 -	NSString *executableName = [infoDict objectForKey:(NSString *)kCFBundleExecutableKey];
    1.17 -	NSString *latestVersionNumber = [productVersionDict objectForKey:executableName];
    1.18 -
    1.19 -	CFURLRef downloadURL = CFURLCreateWithString(kCFAllocatorDefault,
    1.20 -		(CFStringRef)[productVersionDict objectForKey:[executableName stringByAppendingString:@"DownloadURL"]], NULL);
    1.21  	/*
    1.22 -	 NSLog([[[NSBundle bundleWithIdentifier:GROWL_PREFPANE_BUNDLE_IDENTIFIER] infoDictionary] objectForKey:(NSString *)kCFBundleExecutableKey] );
    1.23 -	 NSLog(currVersionNumber);
    1.24 -	 NSLog(latestVersionNumber);
    1.25 -	 */
    1.26 -
    1.27 -	// do nothing--be quiet if there is no active connection or if the
    1.28 -	// version number could not be downloaded
    1.29 -	if (latestVersionNumber && (compareVersionStringsTranslating1_0To0_5(latestVersionNumber, currVersionNumber) > 0))
    1.30 -		NSBeginAlertSheet(/*title*/ NSLocalizedStringFromTableInBundle(@"Update Available", nil, bundle, @""),
    1.31 -						  /*defaultButton*/ nil, // use default localized button title ("OK" in English)
    1.32 -						  /*alternateButton*/ NSLocalizedStringFromTableInBundle(@"Cancel", nil, bundle, @""),
    1.33 -						  /*otherButton*/ nil,
    1.34 -						  /*docWindow*/ nil,
    1.35 -						  /*modalDelegate*/ self,
    1.36 -						  /*didEndSelector*/ NULL,
    1.37 -						  /*didDismissSelector*/ @selector(downloadSelector:returnCode:contextInfo:),
    1.38 -						  /*contextInfo*/ (void *)downloadURL,
    1.39 -						  /*msg*/ NSLocalizedStringFromTableInBundle(@"A newer version of Growl is available online. Would you like to download it now?", nil, [self bundle], @""));
    1.40 -	else
    1.41 -		CFRelease(downloadURL);
    1.42 -
    1.43 -	[productVersionDict release];
    1.44 +	 [growlVersionProgress startAnimation:self];
    1.45  
    1.46  	[growlVersionProgress stopAnimation:self];
    1.47 +	*/
    1.48  }
    1.49  
    1.50  - (void) downloadSelector:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo {