You have several options.
NSArray* objectsArray = [yourSet allObjects];
This will populate the objectArray with all the objects in the set, after which you can list them by looking for the object or objects you want.
You can also use a predicate something like this:
NSPredicate *desiredWeekPredicate = [NSPredicate predicateWithFormat:@"currentWeek == %d", currentWeekYouWant]; NSSet *objectsWithDesiredWeek = [yourSet filteredSetUsingPredicate:predicate];
(Your predicate will look different depending on how you store currentWeek). If you have only one object in currentWeek, you can simply call -anyObject onWithDesiredWeek objects to get your object. If you can have multiple objects with the same currentWeek, then calling the -allObjects method on objectsWithDesiredWeek will give you an array with all the objects that use the desired week.
source share