Re: Private copy not working correctly

2009-07-03 Thread Joe Turner
Thanks, this seems to work perfectly! I recently read about shallow and deep copies, but didn't see the initWithDictionary:copyItems: method. Thanks, Joe On Jul 2, 2009, at 6:51 PM, Adam R. Maxwell wrote: On Jul 2, 2009, at 12:05 PM, Joe Turner wrote: I'm trying to create a private copy

Private copy not working correctly

2009-07-02 Thread Joe Turner
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

Re: Private copy not working correctly

2009-07-02 Thread Adam R. Maxwell
On Jul 2, 2009, at 12:05 PM, Joe Turner wrote: 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];