aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--Interfaces/English.lproj/MainMenu.xib8
-rw-r--r--Source/MainController.m7
2 files changed, 6 insertions, 9 deletions
diff --git a/Interfaces/English.lproj/MainMenu.xib b/Interfaces/English.lproj/MainMenu.xib
index 9b3239ec..0f74ff0c 100644
--- a/Interfaces/English.lproj/MainMenu.xib
+++ b/Interfaces/English.lproj/MainMenu.xib
@@ -2441,14 +2441,6 @@
</object>
<int key="connectionID">936</int>
</object>
- <object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
- <string key="label">delegate</string>
- <reference key="source" ref="138191718"/>
- <reference key="destination" ref="432083121"/>
- </object>
- <int key="connectionID">937</int>
- </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
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];