How do you check if two NSMutableSets
are equal (same members, same number of members)?
My implementation of isEqualToSet
does not seem to be working.
// members is a NSMutableSet of AUser objects
// users is also a NSMutableSet of AUser objects, it is an attribute of instances of the AGroup class
[[group valueForKey:@"users"] isEqualToSet:members]
AGroup
- users
AUser
- name (String)
How do I check if the sets are equal by checking their name attributes?
Sorry for my lack of knowledge, it's my first time with iOS programming, so I only know the basics at the moment.