aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-06-25 22:26:23 +0000
committerBibiko <bibiko@eva.mpg.de>2010-06-25 22:26:23 +0000
commit4a9e9737832222dac26551c90af7279b348690b2 (patch)
tree763e9464f22c8b6212d60e82fcf729c9bf46701d /Source/SPDatabaseDocument.m
parentb8b9b9e732829c21bb422adff2bbd557f1a8eca3 (diff)
downloadsequelpro-4a9e9737832222dac26551c90af7279b348690b2.tar.gz
sequelpro-4a9e9737832222dac26551c90af7279b348690b2.tar.bz2
sequelpro-4a9e9737832222dac26551c90af7279b348690b2.zip
• further progress for open/save session
- remember window position - remember save accessory view settings in spfs file
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 83288cda..86cfb117 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -2985,6 +2985,14 @@
}
+ [info setObject:[NSNumber numberWithBool:[[spfDocData_temp objectForKey:@"encrypted"] boolValue]] forKey:@"encrypted"];
+ [info setObject:[NSNumber numberWithBool:[[spfDocData_temp objectForKey:@"auto_connect"] boolValue]] forKey:@"auto_connect"];
+ [info setObject:[NSNumber numberWithBool:[[spfDocData_temp objectForKey:@"save_password"] boolValue]] forKey:@"save_password"];
+ [info setObject:[NSNumber numberWithBool:[[spfDocData_temp objectForKey:@"include_session"] boolValue]] forKey:@"include_session"];
+ [info setObject:[NSNumber numberWithBool:[[spfDocData_temp objectForKey:@"save_editor_content"] boolValue]] forKey:@"save_editor_content"];
+ [info setObject:[NSNumber numberWithInteger:1] forKey:@"version"];
+ [info setObject:@"connection bundle" forKey:@"format"];
+
// Loop through all windows
for(NSWindow *window in [[NSApp delegate] orderedDatabaseConnectionWindows]) {
@@ -3021,6 +3029,7 @@
}
[win setObject:tabs forKey:@"tabs"];
[win setObject:[NSNumber numberWithInteger:selectedTabItem] forKey:@"selectedTabIndex"];
+ [win setObject:NSStringFromRect([window frame]) forKey:@"frame"];
[windows addObject:win];
}
[info setObject:windows forKey:@"windows"];