aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportFilenameUtilities.m
Commit message (Collapse)AuthorAgeFilesLines
* Allow import of saved export settings (in export dialog)Max2015-11-071-0/+12
|
* Fix table name token not being used in SQL exports even when only one table ↵Max2015-10-241-0/+2
| | | | is selected
* Change how the custom filename pattern in export dialog is handledMax2015-10-121-163/+66
| | | | | | | | Namely: * They were previously stored in the users locale. Now they are stored using a language independent id * Just typing a token in your language will no longer work. If you want to manually type a token use: {host}, {database}, and so on… (all in English) * Copy & Paste of tokens will use the new form, too (so a user running SP in English can simply share a custom pattern with a user running SP in German) * The localized token names can now contain spaces
* Rename a variable that was desperately trying to cause coding errorsMax2015-10-101-2/+2
|
* The export code caused an exception when no database was selected but the ↵Max2015-06-161-4/+4
| | | | filename contained the database token (fixes #2145)
* Fix some minor compiler warningsMax2015-02-031-0/+6
|
* Add cast for [NSApp delegate]Max2014-12-131-1/+1
| | | | | * (Also changed some outdated URLs) * Replaced [NSApplication sharedApplication] with NSApp
* Fix for exception on export (#1968)Max2014-08-011-1/+3
| | | | | | | This fixes an exception that would happen if three conditions were met: 1) No database was selected or it was empty 2) A custom export filename was set 3) You tried to export the result of a custom query
* Add favorite name as export filename tokenMax2014-03-281-0/+4
|
* 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
|
* - Add support for export path tokens containing non-alphanumeric ↵rowanbeentje2013-03-041-14/+41
| | | | characters, automatically grouping and tokenising as required for both dragged and typed tokens. This addresses Issue #1567.
* Change Sequel Pro's license from GPL (version 2) to MIT.stuconnolly2012-07-251-12/+19
|
* Fix implicit cast warnings.stuconnolly2012-05-111-1/+1
|
* - Fix localisation of export tokens, preventing duplication of strings to ↵rowanbeentje2012-04-191-11/+17
| | | | be translated causing translation faults; this addresses Issue #1322.
* Improve the availability of the table name token on the custom export ↵stuconnolly2012-04-011-9/+80
| | | | | | | | | | filename selection. It's now no longer available during the following situations: - Exporting more than one table during an SQL export - Exporting more than one table during a CSV or XML, but only if the export to multiple files is not checked
* Tidy up.stuconnolly2011-08-241-9/+19
|
* Implement a large number of minor fixes and improvements to export ↵rowanbeentje2011-05-071-47/+127
| | | | | | | | | | | | | | | | | | | | | | functionality, including an overhaul of filename NSTokenField functionality: - Improve the NSTokenField used for export filenames: only tokenise reserved tokens, don't tokenise reserved words which are parts of other words, allow the comma to be used, update tokenisation during typing, and prevent whitespace triming. - Save the last selected export path, and make the path selection button open a dialog to the selected directory - Save the export filename and restore on future uses of the export dialog (only if the name contains placeholder tokens, so one-off export names aren't saved) - If the advanced options are collapsed, display a summary of the selected options next to the disclosure triangle - Display a small warning in the corner of the window if the export file cannot be imported into Sequel Pro, to warn those people attempting to back up their databases in XML - Clarify and improve the export warning dialog if files already exist or could not be created; make the simpler file-exists cases reflect OS-style dialogs, alter wording based on the number of files that failed and how they failed, and only show the "replace" or "skip" type buttons if it makes sense to do so. - Fix a mutation-during-enumeration error when skipping files - If "Cancel" is chosen in the export file creation replace/error dialog, redisplay the export sheet with the previous selection still active - Add support for year, month and day tokens in the filename token list - Don't allow blank custom filenames, before or after tokenisation, as this can cause problems - instead fall back to default filenames in those cases - Only append the extension if one hasn't been set - on all export formats, extending r3284 - If exporting to multiple files option is enabled but only one table is selected, supply that table name for filename table tokens - Update the progress bar to reflect update progress when exporting CSV data - Fix a bug causing exports to hang if the low-memory advanced option was set and content was selected to export and any empty tables were encountered - Save memory use and compression advanced export settings across sessions - Update localisable strings
* - Fix more compiler warningsrowanbeentje2011-03-151-0/+2
| | | | | - Tweak README
* - Fix compiler warnings for MCPKit - largely typecast relatedrowanbeentje2011-03-021-1/+1
| | | | | | | | | - Fix further compiler warnings, including a couple of bugs - Disable the -wselector warnings (Multiple definition types for selector) as they're currently unsupported in LLVM - Disable the -wconversion warnings (Prototype conversion) warnings as we usually can't affect protocol declaration - Disable the -wstrict-selector-match (Strict selector matching) due to too many false positives
* Various export enhancements and fixes, including:stuconnolly2010-08-121-0/+9
| | | | | | | | | | | | - A new SPExportFile class, providing an abstract interface to the handling and creation of export files. - Enables the centralisation of all file/file handle creation logic as well as better support for handling situations where files fail to be created, including files that already exist at the export location. - New SPExportFileHandleStatus constants to support the reporting of file handle creation. - Update SPExporter to use the new file class instead of directly using an instance of SPFileHandle. - Add the necessary logic to deal with files that already exist on disk, by providing the user with 3 options: cancel the export, ignore the files in question or overwrite them. We might want to enhance this to make new files sequential in name to prevent overwriting. Fixes issue #742. - New SPExportFileUtilities category, which centralises all the logic relating to writing export type headers as well as dealing with problems occurred during file/file handle creation. - Improve feedback given on the export progress sheet during export initialisation. - Tidy up and improve comments.
* During a CSV export if the user selects the tab as the separator update the ↵stuconnolly2010-07-251-1/+2
| | | | extension to be .tsv
* Tidy up SPExportController by splitting out all filename related methods to ↵stuconnolly2010-07-251-0/+188
a new category SPExportFilenameUtilities.