Hi guys, I seem to be having relationship issues... 
I've got a Subject entity, which holds lots of Task entities. I want to change one Task entity's "parentSubject" relationship to something else.
So, lets say I've got two subjects, with "title" keys "Bio" and "Chem."
I have the task object, and I have the ability to change the relationship using:
Problem is, I can't figure out how to obtain the "subjectObject." I have the string of its "title" key, and I have the list of Subject MO's using:
But, how do I search that returned NSArray for a certain title string? I've been running through loops of "valueForKey:" and NSEntityDescription's, and I can't make heads or tails of the hierarchy. I'm sure there's an easy, simple way to do this, but I've yet to stumble upon it.
I've got a Subject entity, which holds lots of Task entities. I want to change one Task entity's "parentSubject" relationship to something else.
So, lets say I've got two subjects, with "title" keys "Bio" and "Chem."
I have the task object, and I have the ability to change the relationship using:
Code:
[myObject setValue:subjectObject forKey:@"parentSubject"];
Problem is, I can't figure out how to obtain the "subjectObject." I have the string of its "title" key, and I have the list of Subject MO's using:
Code:
[subjectController arrangedObjects]
But, how do I search that returned NSArray for a certain title string? I've been running through loops of "valueForKey:" and NSEntityDescription's, and I can't make heads or tails of the hierarchy. I'm sure there's an easy, simple way to do this, but I've yet to stumble upon it.