• 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
copy vs mutableCopy?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

copy vs mutableCopy?


  • Subject: copy vs mutableCopy?
  • From: Rob Ross <email@hidden>
  • Date: Tue, 11 Jul 2006 08:50:59 -0700

Ok, I know the difference between a mutable and immutable object. And I know the difference between a shallow copy and a deep copy.

But I am having trouble understanding the difference between implementing copy vs mutable copy, since it seems you can make mutable copies of immutable objects, and immutable copies of mutable objects. I'm just a bit confused how this works in practice.

I've read this:

http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/ Tasks/ImplementCopy.html

but it doesn't really tell me the difference between the two methods.


Rob Ross _______________________________________________ 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
  • Follow-Ups:
    • Re: copy vs mutableCopy?
      • From: Greg Titus <email@hidden>
  • Prev by Date: View disappears with NSViewAnimation
  • Next by Date: Re: copy vs mutableCopy?
  • Previous by thread: Re: View disappears with NSViewAnimation
  • Next by thread: Re: copy vs mutableCopy?
  • Index(es):
    • Date
    • Thread