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.

MacRumors attracts a broad audience
of both consumers and professionals interested in
the latest technologies and products. We also boast an active community focused on
purchasing decisions and technical aspects of the iPhone, iPod, iPad, and Mac platforms.