• 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: NSCopying vs NSMutableCopying for custom object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCopying vs NSMutableCopying for custom object


  • Subject: Re: NSCopying vs NSMutableCopying for custom object
  • From: Graham Cox <email@hidden>
  • Date: Sun, 27 Oct 2013 19:34:16 +0100

On 27/10/2013, at 6:58 PM, Trygve Inda <email@hidden> wrote:

> So in my case is there really no difference between
> a mutable copy and an immutable copy?


No, because your object is mutable, by design. So copying it yields another mutable object.

Only if you design objects with mutable and immutable variants does the difference become important.

--Graham
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >NSCopying vs NSMutableCopying for custom object (From: Trygve Inda <email@hidden>)

  • Prev by Date: NSCopying vs NSMutableCopying for custom object
  • Next by Date: Re: How to change highlight colour on NSTableView row
  • Previous by thread: NSCopying vs NSMutableCopying for custom object
  • Next by thread: Mavericks Printing and inverted NSScrollView > NSClipView > NSTableView presentation
  • Index(es):
    • Date
    • Thread