diff options
author | stuconnolly <stuart02@gmail.com> | 2009-11-11 23:09:28 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-11-11 23:09:28 +0000 |
commit | 2919229980e70fc6c367925ba2520b0e21c19b60 (patch) | |
tree | 329572a9f7467d79c47f45a554e5feb64567f249 | |
parent | 876432a34ce9e99c45b16a2d42df5a0af8baec2c (diff) | |
download | sequelpro-2919229980e70fc6c367925ba2520b0e21c19b60.tar.gz sequelpro-2919229980e70fc6c367925ba2520b0e21c19b60.tar.bz2 sequelpro-2919229980e70fc6c367925ba2520b0e21c19b60.zip |
Make the 'insufficient connection details' dialogs sheets.
-rw-r--r-- | Interfaces/English.lproj/Localizable.strings | bin | 102494 -> 103628 bytes | |||
-rw-r--r-- | Source/SPConnectionController.h | 1 | ||||
-rw-r--r-- | Source/SPConnectionController.m | 4 |
3 files changed, 2 insertions, 3 deletions
diff --git a/Interfaces/English.lproj/Localizable.strings b/Interfaces/English.lproj/Localizable.strings Binary files differindex 9011cf74..f7333112 100644 --- a/Interfaces/English.lproj/Localizable.strings +++ b/Interfaces/English.lproj/Localizable.strings diff --git a/Source/SPConnectionController.h b/Source/SPConnectionController.h index e4a26a06..824c2f46 100644 --- a/Source/SPConnectionController.h +++ b/Source/SPConnectionController.h @@ -52,7 +52,6 @@ enum spconnection_types @end - @interface SPConnectionController : NSObject { id delegate; diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index 8299e024..6d55dbbd 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -150,13 +150,13 @@ { // Ensure that host is not empty if this is a TCP/IP or SSH connection if (([self type] == SP_CONNECTION_TCPIP || [self type] == SP_CONNECTION_SSHTUNNEL) && ![[self host] length]) { - NSRunAlertPanel(NSLocalizedString(@"Insufficient connection details", @"insufficient details message"), NSLocalizedString(@"Insufficient details provided to establish a connection. Please provide at least a host.", @"insufficient details informative message"), NSLocalizedString(@"OK", @"OK button"), nil, nil); + NSBeginAlertSheet(NSLocalizedString(@"Insufficient connection details", @"insufficient details message"), NSLocalizedString(@"OK", @"OK button"), nil, nil, documentWindow, self, nil, nil, nil, NSLocalizedString(@"Insufficient details provided to establish a connection. Please enter at least the hostname.", @"insufficient details informative message")); return; } // If SSH is enabled, ensure that the SSH host is not nil if ([self type] == SP_CONNECTION_SSHTUNNEL && ![[self sshHost] length]) { - NSRunAlertPanel(NSLocalizedString(@"Insufficient connection details", @"insufficient details message"), NSLocalizedString(@"Please enter the hostname for the SSH Tunnel, or disable the SSH Tunnel.", @"message of panel when ssh details are incomplete"), NSLocalizedString(@"OK", @"OK button"), nil, nil); + NSBeginAlertSheet(NSLocalizedString(@"Insufficient connection details", @"insufficient details message"), NSLocalizedString(@"OK", @"OK button"), nil, nil, documentWindow, self, nil, nil, nil, NSLocalizedString(@"Insufficient details provided to establish a connection. Please enter the hostname for the SSH Tunnel, or disable the SSH Tunnel.", @"insufficient SSH tunnel details informative message")); return; } |