diff options
author | Max <post@wickenrode.com> | 2015-11-07 04:20:06 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-11-07 04:20:06 +0100 |
commit | fdef91b45a56b2f94aa477041b8f4185a2e7e7e2 (patch) | |
tree | 82782958767e3bda7bf7118cc3b357fa78fb4db7 /Source/SPExportFilenameUtilities.m | |
parent | 72951bfbb85dd91095823fc6a170d3ce41718246 (diff) | |
download | sequelpro-fdef91b45a56b2f94aa477041b8f4185a2e7e7e2.tar.gz sequelpro-fdef91b45a56b2f94aa477041b8f4185a2e7e7e2.tar.bz2 sequelpro-fdef91b45a56b2f94aa477041b8f4185a2e7e7e2.zip |
Allow import of saved export settings (in export dialog)
Diffstat (limited to 'Source/SPExportFilenameUtilities.m')
-rw-r--r-- | Source/SPExportFilenameUtilities.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/SPExportFilenameUtilities.m b/Source/SPExportFilenameUtilities.m index ac09dd3b..69b8f786 100644 --- a/Source/SPExportFilenameUtilities.m +++ b/Source/SPExportFilenameUtilities.m @@ -153,6 +153,18 @@ [self updateDisplayedExportFilename]; } +- (NSArray *)currentAllowedExportFilenameTokens +{ + NSArray *mixed = [exportCustomFilenameTokenPool objectValue]; + NSMutableArray *tokens = [NSMutableArray arrayWithCapacity:[mixed count]]; // ...or less + + for (id obj in mixed) { + if([obj isKindOfClass:[SPExportFileNameTokenObject class]]) [tokens addObject:obj]; + } + + return tokens; +} + /** * Generates the default export filename based on the selected export options. * |