• 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: ARC Extending Lifetime of Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ARC Extending Lifetime of Objects


  • Subject: Re: ARC Extending Lifetime of Objects
  • From: Graham Cox <email@hidden>
  • Date: Mon, 23 Jul 2012 23:01:07 +1000

On 23/07/2012, at 9:57 PM, Andreas Grosam wrote:

> Thus, I need to define a deepCopy method for NSDictionary (and NSArray, too).


So, do that.

However, are you really sure? I remember thinking I needed this at one time and implemented a whole series of -deepCopy: methods in a variety of classes in a category on each. Works great, but in actual practice I think I used it once then figured out a better way to do what I wanted and no longer use this code, though it's still there if I ever do.

Don't worry about performance until you can prove it's not good enough.

--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: 
 >ARC Extending Lifetime of Objects (From: Andreas Grosam <email@hidden>)
 >Re: ARC Extending Lifetime of Objects (From: Mike Abdullah <email@hidden>)
 >Re: ARC Extending Lifetime of Objects (From: Andreas Grosam <email@hidden>)
 >Re: ARC Extending Lifetime of Objects (From: Mike Abdullah <email@hidden>)
 >Re: ARC Extending Lifetime of Objects (From: Andreas Grosam <email@hidden>)

  • Prev by Date: Re: ARC Extending Lifetime of Objects
  • Next by Date: Re: ARC Extending Lifetime of Objects
  • Previous by thread: Re: ARC Extending Lifetime of Objects
  • Next by thread: Re: ARC Extending Lifetime of Objects
  • Index(es):
    • Date
    • Thread