views:

61

answers:

1

From the docs:

You usually access to-many relationships using mutableSetValueForKey:, which returns a proxy object that both mutates the relationship and sends appropriate key-value observing notifications for you.

So this returns an "intelligent" NSMutableSet which automatically lets the context delete objects when they get deleted from the set, and reverse? Is that a proxy object?

+1  A: 

Yes. See Accessor Search Pattern for Unordered Collections in the Key-Value programming guide for details.

TechZen
Wow, that method is actually really intelligent. Impressive! (Yes, I really did quit my day job to have more time learning all this stuff)
dontWatchMyProfile