• 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
Private copy not working correctly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Private copy not working correctly


  • Subject: Private copy not working correctly
  • From: Joe Turner <email@hidden>
  • Date: Thu, 02 Jul 2009 14:05:11 -0500

Hello,

I'm trying to create a private copy of an object, but yet when the original changes, my copy changes too.
I have an array of dictionaries called spacesData. Then, when I do: NSDictionary *backup = [[spacesData objectAtIndex:index] copy]; everything is fine, and this one looks as it should. Then, when I change something in spacesData objectAtIndex:index], this private copy changes too. Doesn't "copy" create a private copy, or am I doing something wrong?


Any help would be appreciated,

Joe
_______________________________________________

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


  • Follow-Ups:
    • Re: Private copy not working correctly
      • From: "Adam R. Maxwell" <email@hidden>
  • Prev by Date: Re: NSTableView bug?
  • Next by Date: How a subview can inform to the controler that an event has happened?
  • Previous by thread: Re: Windows on main thread always only sometimes?
  • Next by thread: Re: Private copy not working correctly
  • Index(es):
    • Date
    • Thread