monkeyandco/MCResource — pull request #1 by georges (2012-03-10 07:01:14+00:00)
Title: Bug fix for clearing associations

There was a problem when clearing associations. objectAtIndex was being wrongly called on _associatedObjects which is a CPSet.

I've changed it to use an iterator. Also, I no longer double check the object in _observableAssociatedObjectArray to see if it was new too. I'm not sure what case would cause _observableAssociatedObjectArray and _associatedObjects to be out of sync.