aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPArrayAdditions.m
diff options
context:
space:
mode:
authormltownsend <mltownsend@gmail.com>2009-08-11 17:00:46 +0000
committermltownsend <mltownsend@gmail.com>2009-08-11 17:00:46 +0000
commit80f757d7f217ae836f6c8de60134bc2a5d005687 (patch)
tree6969e36a3bd1f63227d67d2f2bdb224c36b1aeed /Source/SPArrayAdditions.m
parentf6afd1e9699b891f1deee9058a1737e8c5744bd7 (diff)
downloadsequelpro-80f757d7f217ae836f6c8de60134bc2a5d005687.tar.gz
sequelpro-80f757d7f217ae836f6c8de60134bc2a5d005687.tar.bz2
sequelpro-80f757d7f217ae836f6c8de60134bc2a5d005687.zip
User Manager feature
Diffstat (limited to 'Source/SPArrayAdditions.m')
-rw-r--r--Source/SPArrayAdditions.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/SPArrayAdditions.m b/Source/SPArrayAdditions.m
index 853421e0..37b1ba62 100644
--- a/Source/SPArrayAdditions.m
+++ b/Source/SPArrayAdditions.m
@@ -42,6 +42,21 @@
return result;
}
+- (NSString *)componentsJoinedByCommas
+{
+ NSString *result = [NSString string];
+ for (NSString *component in self)
+ {
+ if ([result length])
+ {
+ result = [result stringByAppendingString:@","];
+ }
+
+ result = [result stringByAppendingString:component];
+ }
+ return result;
+}
+
- (NSArray *)subarrayWithIndexes:(NSIndexSet *)indexes
{
NSMutableArray *subArray = [NSMutableArray arrayWithCapacity:[indexes count]];