aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPProcessListController.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-11-13 12:05:30 +0000
committerstuconnolly <stuart02@gmail.com>2009-11-13 12:05:30 +0000
commit53b268eece1c040b71a58bb7652e360263f4d3f0 (patch)
treec4cab737ae6fa9fc585295dbe9262db74d1a3c7a /Source/SPProcessListController.m
parentde3b515a6988354a36fe6e6c62e050f9fa0d2444 (diff)
downloadsequelpro-53b268eece1c040b71a58bb7652e360263f4d3f0.tar.gz
sequelpro-53b268eece1c040b71a58bb7652e360263f4d3f0.tar.bz2
sequelpro-53b268eece1c040b71a58bb7652e360263f4d3f0.zip
In an aid to split up the functionality of the TableDocument class as well as reducing the overall size of DBView, split out the server variables sheet into it's own controller and XIB in the same way as the new server processes sheet is implemented.
Diffstat (limited to 'Source/SPProcessListController.m')
-rw-r--r--Source/SPProcessListController.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/SPProcessListController.m b/Source/SPProcessListController.m
index c1f52d3c..af160177 100644
--- a/Source/SPProcessListController.m
+++ b/Source/SPProcessListController.m
@@ -26,8 +26,9 @@
#import <MCPKit/MCPKit.h>
#import "SPProcessListController.h"
-#import "SPConstants.h"
#import "SPArrayAdditions.h"
+#import "TableDocument.h"
+#import "SPConstants.h"
@interface SPProcessListController (PrivateAPI)
@@ -277,9 +278,9 @@
*/
- (void)savePanelDidEnd:(NSSavePanel *)panel returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo
{
- if (returnCode == NSAlertDefaultReturn) {
+ if (returnCode == NSOKButton) {
if ([processesFiltered count] > 0) {
- NSMutableString *processesString = [NSMutableString string];
+ NSMutableString *processesString = [NSMutableString stringWithFormat:@"# MySQL server proceese for %@\n\n", [(TableDocument *)[[NSApp mainWindow] delegate] host]];
for (NSDictionary *process in processesFiltered)
{