Core-data: when accessing a relationship, the count method on NSSet fails
- by lordsandwich
I'm trying to access a relationship (one to many) programatically.
My Data model contains an NSManagedEntity called language (with a two string attributes)
with a relationship to an entity called WordCategory (one-to-many).
I use an NSFetchRequest to get all the Language entities. that works fine.
I get the valueForKey for the relationship and that…