ios - Find missing objects in NSSet -
I have 2 NSSet, say SetA and SetB
There are 3 objects in the set = @ [Object A, Obsubs, Objective];
There are 4 objects in the set
SetB = @ [ObjectA, ObjectC, ObjectD, ObjectE];
I have to find out which objects are missing in the set. In a way, I can do it again on every object in the set and find it in the set.
Question - Is there a quick way to achieve this goal in which I do not have to walk again on the whole set. Sets are dynamically populated. Use NSMutableSet and
minusSet to remove elements in
Second set What is the difference for you?
Comments
Post a Comment