Re: Added object to MOC, why isn't this a bug?
Re: Added object to MOC, why isn't this a bug?
- Subject: Re: Added object to MOC, why isn't this a bug?
- From: Chris Hanson <email@hidden>
- Date: Thu, 1 Jun 2006 15:05:25 -0700
On Jun 1, 2006, at 2:54 PM, Bobby B wrote:
So would it be correct to think of it as when I add a new object, if
it's a duplicate, it merges the contents of the two objects?
No, that's not correct at all. When you add an *existing* object
that is *already* in a set, the set does not change. If you add a
new object that is just equivalent to but not the same object
(according to object IDs) as an existing object, then the set will
change.
Like, if I add an album with 1 song to the set, and the same album is
already there with 12 songs, I'll get a result of 13 songs?
No. What the code you posted was doing was getting an existing album
that had (say) 12 songs, and then adding a new song to it. It was
not creating a new album despite the names of the variables in your
post.
-- Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden