Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow searching for only populated groups in a roster

  • Loading branch information...
commit baf5efc4c735adea96692a9713cdda2c079d506b 1 parent 4675aab
@benlangfeld authored
Showing with 20 additions and 0 deletions.
  1. +20 −0 TNStropheRoster.j
View
20 TNStropheRoster.j
@@ -298,6 +298,26 @@
return tempArray;
}
+- (int)populatedGroupsCount
+{
+ return [[self populatedGroups] count];
+}
+
+- (CPArray)populatedGroups
+{
+ var tempGroups = [CPArray array];
+
+ for (var i = 0; i < [_groups count]; i++)
+ {
+ var group = [_groups objectAtIndex:i];
+ if ([group count] > 0)
+ [tempGroups addObject:group];
+ }
+
+ return tempGroups;
+}
+
+
#pragma mark -
#pragma mark Contacts
Please sign in to comment.
Something went wrong with that request. Please try again.