How can I efficiently find the attributes of an NSEntity object in a set ?
I have implemented it this way, but it seems to be inefficient. Is there a faster, easier, more efficient method of finding the attributes of an NSEntity object in a set, than this approach?
soccerTeamViewController.players = [[NSMutableArray alloc] init];
for (GGPlayer *playa in chelsea.players) {
[soccerTeamViewController.players addObject:playa.name];
}
^here chelsea is a GGTeam, it has a set of GGPlayers as a property.
Models:
GGTeam:
@property (nonatomic, retain) NSMutableSet *players;
GGPlayer:
@property (nonatomic, retain) NSString *name;
From a first time iOS-er.