aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-06-21 15:11:27 +0000
committerstuconnolly <stuart02@gmail.com>2009-06-21 15:11:27 +0000
commitb81639098f7044aaed0187e75a5bbbff514bf100 (patch)
treefb1f78df55dc8c59802b97ece770b0dcdc021986 /Source
parentb4a259970d826d45145dd5fd3f43bcab5208d700 (diff)
downloadsequelpro-b81639098f7044aaed0187e75a5bbbff514bf100.tar.gz
sequelpro-b81639098f7044aaed0187e75a5bbbff514bf100.tar.bz2
sequelpro-b81639098f7044aaed0187e75a5bbbff514bf100.zip
Sparkle delegate methods doesn't seem to be getting called, so set the delegate globally.
Diffstat (limited to 'Source')
-rw-r--r--Source/MainController.m7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/MainController.m b/Source/MainController.m
index f00e3264..320eb154 100644
--- a/Source/MainController.m
+++ b/Source/MainController.m
@@ -50,6 +50,9 @@
*/
- (void)awakeFromNib
{
+ // Set Sparkle delegate
+ [[SUUpdater sharedUpdater] setDelegate:self];
+
prefsController = [[SPPreferenceController alloc] init];
// Register MainController as services provider
@@ -69,7 +72,7 @@
*/
- (IBAction)openPreferences:(id)sender
{
- [prefsController showWindow:self];
+ [prefsController showWindow:self];
}
#pragma mark -
@@ -184,6 +187,8 @@
*/
- (void)updaterWillRelaunchApplication:(SUUpdater *)updater
{
+ NSLog(@"Called");
+
// Get all the currently open windows and their attached sheets if any
NSArray *windows = [NSApp windows];