From 399727621931b08e2668196b521c57382c829cf8 Mon Sep 17 00:00:00 2001 From: dynaflash Date: Tue, 22 Jan 2008 17:06:55 +0000 Subject: MacGui: Remove deprecated -updateAlertDone method used in the old updating scheme - Deprecated due to the Sparkle updater implementation git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1225 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/Controller.mm | 40 +++++++++------------------------------- 1 file changed, 9 insertions(+), 31 deletions(-) (limited to 'macosx/Controller.mm') diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 5b0e2c207..1651f5cec 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -102,7 +102,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It //fHandle = hb_init(debugLevel, [[NSUserDefaults standardUserDefaults] boolForKey:@"CheckForUpdates"]); /* New Init libhb with check for updates libhb style set to "0" so its ignored and lets sparkle take care of it */ fHandle = hb_init(debugLevel, 0); - + // Set the Growl Delegate [GrowlApplicationBridge setGrowlDelegate: self]; @@ -116,9 +116,9 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It /* Call UpdateUI every 1/2 sec */ [[NSRunLoop currentRunLoop] addTimer: [NSTimer - scheduledTimerWithTimeInterval: 0.5 target: self - selector: @selector( updateUI: ) userInfo: NULL repeats: YES] - forMode: NSEventTrackingRunLoopMode]; + scheduledTimerWithTimeInterval: 0.5 target: self + selector: @selector( updateUI: ) userInfo: NULL repeats: YES] + forMode: NSEventTrackingRunLoopMode]; // Open debug output window now if it was visible when HB was closed if ([[NSUserDefaults standardUserDefaults] boolForKey:@"OutputPanelIsOpen"]) @@ -135,11 +135,11 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It /* Update available - tell the user */ NSBeginInformationalAlertSheet( _( @"Update is available" ), - _( @"Go get it!" ), _( @"Discard" ), NULL, fWindow, self, - @selector( updateAlertDone:returnCode:contextInfo: ), - NULL, NULL, [NSString stringWithFormat: - _( @"HandBrake %s (build %d) is now available for download." ), - version, build] ); + _( @"Go get it!" ), _( @"Discard" ), NULL, fWindow, self, + @selector( updateAlertDone:returnCode:contextInfo: ), + NULL, NULL, [NSString stringWithFormat: + _( @"HandBrake %s (build %d) is now available for download." ), + version, build] ); return; } @@ -147,28 +147,6 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It /* Show Browse Sources Window ASAP */ [self performSelectorOnMainThread: @selector(browseSources:) withObject: NULL waitUntilDone: NO]; - } - -- (void) updateAlertDone: (NSWindow *) sheet - returnCode: (int) returnCode contextInfo: (void *) contextInfo -{ - if( returnCode == NSAlertDefaultReturn ) - { - /* Go to HandBrake homepage and exit */ - [self openHomepage: NULL]; - [NSApp terminate: self]; - - } - else - { - /* Show scan panel */ - [self performSelectorOnMainThread: @selector(showScanPanel:) - withObject: NULL waitUntilDone: NO]; - return; - /* Go to HandBrake homepage and exit */ - [self openHomepage: NULL]; - [NSApp terminate: self]; - } } - (NSApplicationTerminateReply) applicationShouldTerminate: (NSApplication *) app -- cgit v1.2.3