diff options
author | rowanbeentje <rowan@beent.je> | 2011-08-16 00:07:03 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2011-08-16 00:07:03 +0000 |
commit | 22f2e47959158cf33704481353a65b6d3b242b88 (patch) | |
tree | fdccf10fefb43197065f028017e77cd83b51ab85 /Source/SPFieldEditorController.m | |
parent | aee5bc25beb877fb6484031c087b4f93096394eb (diff) | |
download | sequelpro-22f2e47959158cf33704481353a65b6d3b242b88.tar.gz sequelpro-22f2e47959158cf33704481353a65b6d3b242b88.tar.bz2 sequelpro-22f2e47959158cf33704481353a65b6d3b242b88.zip |
- Lion compatibility improvement: add support for fullscreen windows, on the main window only; hide SSH/SSL status when entering fullscreen mode, to prevent drawing issues
- Lion compatibility improvement: update tab colours under 10.7 to match system styles
- Lion compatibility improvement: fix issues dragging tabs out of windows and into other tab bars
- Lion compatibility improvement: fix QuickLook issues under 10.7, including windows which couldn't be closed, fullscreened, or crashes
- Fix exceptions in the bundle controller when using tab switching keys
- Lion compatibility improvement: use overlay scrollers where possible
Diffstat (limited to 'Source/SPFieldEditorController.m')
-rw-r--r-- | Source/SPFieldEditorController.m | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m index 3ad7e077..1207755e 100644 --- a/Source/SPFieldEditorController.m +++ b/Source/SPFieldEditorController.m @@ -54,10 +54,11 @@ - (id)init { #ifndef SP_REFACTOR - if ((self = [super initWithWindowNibName:@"FieldEditorSheet"])) { + if ((self = [super initWithWindowNibName:@"FieldEditorSheet"])) #else - if ((self = [super initWithWindowNibName:@"SQLFieldEditorSheet"])) { + if ((self = [super initWithWindowNibName:@"SQLFieldEditorSheet"])) #endif + { // force the nib to be loaded (void) [self window]; counter = 0; @@ -161,6 +162,7 @@ #ifndef SP_REFACTOR if ( qlTypes ) [qlTypes release]; #endif + if ( tmpFileName ) [tmpFileName release]; if ( tmpDirPath ) [tmpDirPath release]; if ( esUndoManager ) [esUndoManager release]; if ( contextInfo ) [contextInfo release]; @@ -786,7 +788,8 @@ // Create a temporary file name to store the data as file // since QuickLook only works on files. // Alternate the file name to suppress caching by using counter%2. - tmpFileName = [NSString stringWithFormat:@"%@SequelProQuickLook%d.%@", tmpDirPath, counter%2, type]; + if (tmpFileName) [tmpFileName release]; + tmpFileName = [[NSString alloc] initWithFormat:@"%@SequelProQuickLook%d.%@", tmpDirPath, counter%2, type]; // if data are binary if ( [sheetEditData isKindOfClass:[NSData class]] && !isText) { |