aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindowController.h
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-10-18 09:03:18 +0200
committerMax <post@wickenrode.com>2015-10-18 09:03:18 +0200
commitba5b71d5bb64fdc40a4a9eaeb7867fdaea8a1673 (patch)
tree1cb4bf35415923cb53247fcbb1b68c08a3d59a46 /Source/SPWindowController.h
parentbc61f825d02eac931b0bbfdebacc4ccb320a9237 (diff)
downloadsequelpro-ba5b71d5bb64fdc40a4a9eaeb7867fdaea8a1673.tar.gz
sequelpro-ba5b71d5bb64fdc40a4a9eaeb7867fdaea8a1673.tar.bz2
sequelpro-ba5b71d5bb64fdc40a4a9eaeb7867fdaea8a1673.zip
Fix a crash that could happen when exiting fullscreen mode on 10.11
(backport of d4641ec90fe1b50fca0256e26338d955290fd8b7)
Diffstat (limited to 'Source/SPWindowController.h')
-rw-r--r--Source/SPWindowController.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/SPWindowController.h b/Source/SPWindowController.h
index c99a2ff2..a86a85f9 100644
--- a/Source/SPWindowController.h
+++ b/Source/SPWindowController.h
@@ -49,7 +49,17 @@
// Database connection management
- (IBAction)addNewConnection:(id)sender;
- (IBAction)moveSelectedTabInNewWindow:(id)sender;
+
+/**
+ * @danger THIS IS NOT RETAINED!!!
+ *
+ * Ever only directly use it on the main thread!
+ * Do not cache it without retaining first!
+ * For background threads get it and retain it via the main thread!
+ * Release it on the main thread again.
+ */
- (SPDatabaseDocument *)selectedTableDocument;
+
- (void)updateSelectedTableDocument;
- (void)updateAllTabTitles:(id)sender;
- (IBAction)closeTab:(id)sender;