From 22f2e47959158cf33704481353a65b6d3b242b88 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 16 Aug 2011 00:07:03 +0000 Subject: - 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 --- Source/SPFieldEditorController.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Source/SPFieldEditorController.m') 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) { -- cgit v1.2.3