aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTablesList.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/SPTablesList.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/SPTablesList.m')
-rw-r--r--Source/SPTablesList.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m
index 458389c2..8d455b58 100644
--- a/Source/SPTablesList.m
+++ b/Source/SPTablesList.m
@@ -717,13 +717,13 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable";
[documentState setObject:@YES forKey:@"auto_connect"];
// Set the connection on the new tab
- [[[NSApp delegate] frontDocument] setState:documentState];
+ [[SPAppDelegate frontDocument] setState:documentState];
}
- (IBAction)openTableInNewWindow:(id)sender
{
//create new window
- [(SPAppController *)[NSApp delegate] newWindow:self];
+ [SPAppDelegate newWindow:self];
[self _duplicateConnectionToFrontTab];
}
@@ -2653,7 +2653,7 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable";
// check if the name really changed
if ([oldTableName isEqualToString:newTableName]) return;
- // check if only the case changed - then we have to do two renames, see http://code.google.com/p/sequel-pro/issues/detail?id=484
+ // check if only the case changed - then we have to do two renames, see issue #484
if ([[oldTableName lowercaseString] isEqualToString:[newTableName lowercaseString]])
{
// first try finding an unused temporary name