diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-11-11 12:43:46 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-11-11 12:43:46 +0000 |
commit | f5a548c05eb23afd80d3c7f105233542b0cfe8aa (patch) | |
tree | a822cf20087f43a9942769c1ded82735a592ceed /Source/SPArrayAdditions.m | |
parent | f633a067d2120cca67fd1b2782688424cadde9d4 (diff) | |
download | sequelpro-f5a548c05eb23afd80d3c7f105233542b0cfe8aa.tar.gz sequelpro-f5a548c05eb23afd80d3c7f105233542b0cfe8aa.tar.bz2 sequelpro-f5a548c05eb23afd80d3c7f105233542b0cfe8aa.zip |
• added to Bundle shell command these variables:
SP_ALL_DATABASES, SP_ALL_TABLES, SP_ALL_VIEWS, SP_ALL_FUNCTIONS, SP_ALL_PROCEDURES, SP_RDBMS_VERSION, SP_RDBMS_TYPE [hard-coded yet ;)]
• some minor improvements to editor Bundle support
• fixed issue while running a bash command that the SP GUI doesn't block
• added first sequelpro url scheme functionality
- sequelpro://$SP_PROCESS_ID/passToDoc/SelectTable/a_name
- sequelpro://$SP_PROCESS_ID/passToDoc/SelectDatabase/a_db_name
- sequelpro://$SP_PROCESS_ID/passToDoc/SelectDatabase/a_db_name/a_table_name
Diffstat (limited to 'Source/SPArrayAdditions.m')
-rw-r--r-- | Source/SPArrayAdditions.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/SPArrayAdditions.m b/Source/SPArrayAdditions.m index 7cc5bb4e..9f9e7705 100644 --- a/Source/SPArrayAdditions.m +++ b/Source/SPArrayAdditions.m @@ -60,6 +60,21 @@ return result; } +- (NSString *)componentsJoinedBySpacesAndQuoted +{ + NSMutableString *result = [NSMutableString string]; + [result setString:@""]; + + for (NSString *component in self) + { + if ([result length]) + [result appendString:@" "]; + + [result appendString:[NSString stringWithFormat:@"\"%@\"", [component stringByReplacingOccurrencesOfString:@"\"" withString:@"\\\""]]]; + } + return result; +} + - (NSString *)componentsJoinedByPeriodAndBacktickQuoted { NSMutableString *result = [NSMutableString string]; |