• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Added object to MOC, why isn't this a bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Added object to MOC, why isn't this a bug? (From: "Bobby B" <email@hidden>)
 >Re: Added object to MOC, why isn't this a bug? (From: Chris Hanson <email@hidden>)
 >Re: Added object to MOC, why isn't this a bug? (From: "Bobby B" <email@hidden>)
 >Re: Added object to MOC, why isn't this a bug? (From: Chris Hanson <email@hidden>)
 >Re: Added object to MOC, why isn't this a bug? (From: "Bobby B" <email@hidden>)

  • Prev by Date: Re: Added object to MOC, why isn't this a bug?
  • Next by Date: Re: Newbie error
  • Previous by thread: Re: Added object to MOC, why isn't this a bug?
  • Next by thread: Re: NSOutlineView (or NSTableView) and threaded, live data display
  • Index(es):
    • Date
    • Thread