• 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: How to clone a mutable dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to clone a mutable dictionary


  • Subject: RE: How to clone a mutable dictionary
  • From: Kirk Kerekes <email@hidden>
  • Date: Fri, 24 Apr 2009 07:17:43 -0500

Simple, brute-force method: archive the dictionary, then unarchive it. The result is a 1-line "deep copy".

Of course, that assumes that all the dictionary objects/keys support archiving.


_______________________________________________

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


  • Prev by Date: Re: Dividing NSView to subviews
  • Next by Date: Re: Detecting changes to NSPopUpButtonCell in an NSTableView
  • Previous by thread: Re: How to clone a mutable dictionary
  • Next by thread: Best technology to use for overlays?
  • Index(es):
    • Date
    • Thread