aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCustomQuery.m
Commit message (Collapse)AuthorAgeFilesLines
* Replace all non-cyclic NSAutoreleasepools with @autoreleasepoolMax2018-05-031-292/+290
|
* Merge remote-tracking branch 'origin/mergeclasses'Max2018-01-201-3/+2
|\ | | | | | | | | | | | | Conflicts: Source/SPQueryControllerInitializer.m Source/SPQueryDocumentsController.m Source/SPQueryFavoriteManager.m
| * merge SPQueryController (part of #2789)Max2018-01-201-1/+0
| |
| * merge SPTableContent (part of #2789)Max2018-01-201-1/+1
| |
| * Merge SPDatabaseDocument (part of #2789)Max2018-01-201-1/+1
| |
* | Remove another 2 cases of very strange object notification behavior (code style)Max2018-01-171-2/+11
| |
* | Work around an exception that would occur when changing Query Favorites ↵Max2018-01-171-28/+34
|/ | | | while an unconnected connection tab existed (#2266)
* Change some method calls so the custom query view controller gets notified ↵Max2017-05-101-0/+12
| | | | when the window is about to be closed and can stop a pending UI timer (#2775)
* Remove a superfluous ivar and the unholy intermingling of UI and data code ↵Max2017-04-181-23/+18
| | | | it has caused (part of #2770)
* Move some code to a place where it makes more sense to be (part of #2770)Max2017-04-181-10/+1
| | | | (This should not cause any behavioral changes)
* Fix a case of „background thread updating UI“ that could cause an ↵Max2017-03-311-1/+1
| | | | exception with a very specific timing (#2754)
* Remove duplicate setting of sheet title/message.Stuart Connolly2017-03-231-2/+1
|
* #2414 fix crash hovering mouse over removed table column headerAbhi Beckert2016-06-051-0/+1
|
* Clarify what the execution time reported by Sequel Pro means (related to #264)Max2016-04-271-6/+13
|
* fix various compile warningsAbhi Beckert2016-04-031-2/+2
|
* Add support for CURRENT_TIMESTAMP(n) in default/on update column of ↵Max2015-11-041-6/+7
| | | | DATETIME/TIMESTAMP fields (part of #2315)
* Fix bundle commands no longer working in popup field editor (and possibly ↵Max2015-10-211-4/+5
| | | | | | other cases) (#2299) Replacing some [NSApp mainWindow] with their actually intended calls [NSApp keyWindow] and [view window]
* Replace a lot of SPBeginAlertSheet()s with the more concise SPOnewayAlertSheet()Max2015-10-201-13/+25
| | | | This should also eliminate a few use-after-free crashes
* Fix an issue where copying the contents of a TEXT/BLOB field from a custom ↵Max2015-10-121-6/+6
| | | | query result would not contain all data if keyboard navigation was used (#2283)
* Make some forgotten strings localizable and add debug code for an exceptionMax2015-09-301-7/+11
|
* Attempt at fixing a crash when trying to open the field editor sheet and ↵Max2015-09-101-4/+9
| | | | Accessibility Services are enabled and a certain other Application is running (issue #2220)
* Add some info which might help a bit with debugging threading issuesMax2015-07-021-1/+1
|
* Fix a data corruption issue in custom query editor (fixes #2113)Max2015-05-141-13/+20
| | | | | | | | ... which occurred if ALL of the following conditions were met: * A cell of a custom query result was being edited * At the same time another process removed said row * The custom query was rerun without canceling or finishing the edit first (also added a NSBeep() for a certain tooltip error message)
* Minimal refactoringMax2015-03-091-1/+1
| | | | Replaced some (range.location + range.length) with NSMaxRange(range)
* Addition to commit 2735e15bMax2015-01-041-17/+14
|
* Formalize [x release], x = nil; conventionMax2015-01-041-7/+7
| | | | | Take this commit as a proposal to formalize our existing "[x release], x = nil;" convention by introducing a macro for it. Feel free to revert this commit if you see issues with the approch or implementation.
* Fix a minor case of "bg thread updating UI"Max2014-12-301-1/+1
|
* Fix issue #2040Max2014-12-131-0/+6
| | | | Changing the query favorties/history would cause an UI inconsitency when the list was filtered before.
* Replace some NSDictionaries with literalsMax2014-12-131-20/+14
| | | | | | * [NSDictionary dictionary] → @{} * [NSDictionary dictionaryWithObject:forKey:] can safely be replaced. object==nil would have already thrown a NPE in the past. * Also replaced some (hopefully safe) NSArray initializers (ie. their objects should always exist).
* Change [NSArray arrayWithObject:] to @[] literalMax2014-12-131-7/+7
| | | | Note: [NSArray arrayWithObjects:...,nil] is left unchanged as that could possibly cause a NPE if converted to @[]
* Add cast for [NSApp delegate]Max2014-12-131-3/+3
| | | | | * (Also changed some outdated URLs) * Replaced [NSApplication sharedApplication] with NSApp
* Replace boxed integers in code with @ literalsMax2014-12-131-7/+7
|
* Reformatting code for modern ObjCMax2014-12-131-1/+1
| | | | | Replaced all [NSNumber numberWithBool:YES/NO] with the @YES/@NO literals. Also replaced some TRUE/FALSE with their YES/NO counterparts.
* Add a safety check within [SPCopyTable shouldUseFieldEditorForRow:column:] ↵rowanbeentje2014-06-161-3/+3
| | | | for use when loading tables, which may improve Issue #1925 and Issue #1902.
* Inverse shift+click sorting for custom queriesMiroslav Zoricak2014-03-051-4/+16
| | | | | Add inverse sorting for custom queries Keep the inverse order while shift+clicking after the first click
* Update URL in source file header to point to GitHub.Stuart Connolly2014-01-261-1/+1
|
* Remove SVN property placeholder.Stuart Connolly2014-01-261-2/+0
|
* Fixed warning on ‘beginSheetForDirectory’Marius Ursache2013-11-101-22/+16
|
* Cleaned up Format string is not a string literal (potentially insecure) errorsMarius Ursache2013-11-091-1/+1
|
* Allow opened SQL files to be saved back to the original file, addressing ↵rowanbeentje2013-09-081-4/+1
| | | | | | | | | Issue #1805: - Add new menu item for "Save Query", making the existing item "Save Query As" as an alternate - Track the opened SQL file and used encoding to be able to easily save the same file again - Standardise encoding detection to use the UniversalDetector framework and use that for opened SQL files where the encoding menu is not used
* Rework table content and custom query data loading and storage for speed ↵rowanbeentje2013-08-131-105/+84
| | | | | | | | | increases and lower memory usage: - Add a new SPMySQLStreamingResultStore class to SPMySQL.framework. This class acts as both a result set and a data store for the accompanying data, storing the row information in a custom format in a custom malloc zone. - Amend SPDataStorage to wrap the new class, so original result information is stored in the one location in the custom format. Any edited information is handled by SPDataStorage for clean separation - Rework table content and custom query data data stores to use the new class. This significantly speeds up data loading, resulting in faster data loads if they weren't previously network constrained, or lower CPU usage otherwise. The memory usage is also lowered, with the memory overhead for many small cells being enormously reduced.
* - Fix all the Xcode 4.6.2 build warnings, and tweak warning settings to ↵rowanbeentje2013-05-211-13/+4
| | | | enable some more
* Issue #1717: Custom query export validation only needs to know the number of ↵stuconnolly2013-05-111-0/+10
| | | | rows of the current result, so don't return the actual result.
* - Move the SPBeginWaitingAlertSheet function to a ↵rowanbeentje2013-04-031-9/+13
| | | | beginWaitingAlertSheetWithTitle:... class method on a new SPAlertSheets class, allowing us to use invocation forwarding to ensure the entire function is executing on the main thread. This allows runloop processing to happen on the main thread, addressing Issue #1676
* - Fix query status and error message title to not always suggest an error ↵rowanbeentje2013-04-011-0/+5
| | | | has occurred, addressing Issue #1670
* - Alter the SPComboPopupButton to ignore clicks started in the left-hand ↵rowanbeentje2013-04-011-4/+3
| | | | | | | part of the button but ended in the right-hand part of the button - Change the button to use "Run All" instead of "Run All Queries" to avoid localisation issues
* Combine the "Run All" and "Run Current/Previous/Selection" buttons into a ↵rowanbeentje2013-03-311-65/+128
| | | | | | | | | | | | single button with dropdown menu with ability to change the default action: - Create a new SPComboPopupButton class; this subclasses NSPopupButton to retain the ability to show the popup menu, but only when the right-hand side of the button is pressed, allowing the rest of the button to perform the click action - Combine the previous two "Run" buttons on the Custom Query view into a new SPComboPopupButton - Move the Run menu items from the gear menu into the Run button popup menu so they can be discovered more easily (and the shortcuts seen more easily) - Add a menu item to switch the button's default action, which also swaps all associated shortcuts - Clean up associated logic This implements Issue #1569
* - If date-type fields are cleared, and allow NULLs, save the cell value as ↵rowanbeentje2013-03-061-1/+1
| | | | NULL; this implements Issue #1638
* Fix remaining 10.6/7 build warnings.stuconnolly2013-02-171-5/+5
|
* Fix more wanrings by creating a protocol that delegates of the copy table ↵stuconnolly2013-02-161-9/+11
| | | | should conform to.