aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryDocumentsController.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2014-12-13 17:20:18 +0100
committerMax <post@wickenrode.com>2014-12-13 17:20:18 +0100
commit994057ae2a82dc110a385ced4239ce49cc0601f8 (patch)
treed874e74e189f14eb1044daad31df88ec562776d2 /Source/SPQueryDocumentsController.m
parent3cf0254e55d558565775e6cb20d36ea7e54beca1 (diff)
downloadsequelpro-994057ae2a82dc110a385ced4239ce49cc0601f8.tar.gz
sequelpro-994057ae2a82dc110a385ced4239ce49cc0601f8.tar.bz2
sequelpro-994057ae2a82dc110a385ced4239ce49cc0601f8.zip
Add cast for [NSApp delegate]
* (Also changed some outdated URLs) * Replaced [NSApplication sharedApplication] with NSApp
Diffstat (limited to 'Source/SPQueryDocumentsController.m')
-rw-r--r--Source/SPQueryDocumentsController.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPQueryDocumentsController.m b/Source/SPQueryDocumentsController.m
index ba1bc2b1..e42a734b 100644
--- a/Source/SPQueryDocumentsController.m
+++ b/Source/SPQueryDocumentsController.m
@@ -30,6 +30,7 @@
#import "SPQueryDocumentsController.h"
#import "SPCustomQuery.h"
+#import "SPAppController.h"
@implementation SPQueryController (SPQueryDocumentsController)
@@ -122,7 +123,7 @@
#ifndef SP_CODA
// Check for multiple instance of the same document.
// Remove it if only one instance was registerd.
- NSArray *allDocs = [[NSApp delegate] orderedDocuments];
+ NSArray *allDocs = [SPAppDelegate orderedDocuments];
NSMutableArray *allURLs = [NSMutableArray array];
for (id doc in allDocs)
@@ -202,7 +203,7 @@
}
// Inform all opened documents to update the history list
- for (id doc in [[NSApp delegate] orderedDocuments])
+ for (id doc in [SPAppDelegate orderedDocuments])
{
if([[doc valueForKeyPath:@"customQueryInstance"] respondsToSelector:@selector(historyItemsHaveBeenUpdated:)]) {
[[doc valueForKeyPath:@"customQueryInstance"] performSelectorOnMainThread:@selector(historyItemsHaveBeenUpdated:) withObject:self waitUntilDone:NO];