aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCustomQuery.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/SPCustomQuery.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/SPCustomQuery.m')
-rw-r--r--Source/SPCustomQuery.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m
index ba053dbf..9de7391d 100644
--- a/Source/SPCustomQuery.m
+++ b/Source/SPCustomQuery.m
@@ -2541,7 +2541,7 @@
if ([aNotification object] != customQueryView) return;
#ifndef SP_CODA /* triggered commands */
- NSArray *triggeredCommands = [[NSApp delegate] bundleCommandsForTrigger:SPBundleTriggerActionTableRowChanged];
+ NSArray *triggeredCommands = [SPAppDelegate bundleCommandsForTrigger:SPBundleTriggerActionTableRowChanged];
for(NSString* cmdPath in triggeredCommands) {
NSArray *data = [cmdPath componentsSeparatedByString:@"|"];
NSMenuItem *aMenuItem = [[[NSMenuItem alloc] init] autorelease];
@@ -2565,7 +2565,7 @@
}
if(!stopTrigger) {
if([[data objectAtIndex:1] isEqualToString:SPBundleScopeGeneral]) {
- [[[NSApp delegate] onMainThread] executeBundleItemForApp:aMenuItem];
+ [[SPAppDelegate onMainThread] executeBundleItemForApp:aMenuItem];
}
else if([[data objectAtIndex:1] isEqualToString:SPBundleScopeDataTable]) {
if([[[[[NSApp mainWindow] firstResponder] class] description] isEqualToString:@"SPCopyTable"])
@@ -3894,7 +3894,7 @@
arrowEvent = [NSEvent keyEventWithType:NSKeyDown location:NSMakePoint(0,0) modifierFlags:0 timestamp:0 windowNumber:[[tableDocumentInstance parentWindow] windowNumber] context:[NSGraphicsContext currentContext] characters:nil charactersIgnoringModifiers:nil isARepeat:NO keyCode:0x7D];
else
arrowEvent = [NSEvent keyEventWithType:NSKeyDown location:NSMakePoint(0,0) modifierFlags:0 timestamp:0 windowNumber:[[tableDocumentInstance parentWindow] windowNumber] context:[NSGraphicsContext currentContext] characters:nil charactersIgnoringModifiers:nil isARepeat:NO keyCode:0x7E];
- [[NSApplication sharedApplication] postEvent:arrowEvent atStart:NO];
+ [NSApp postEvent:arrowEvent atStart:NO];
return YES;
}