Re: NSCopying vs NSMutableCopying for custom object

2013-10-27 Thread Graham Cox
On 27/10/2013, at 6:58 PM, Trygve Inda 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 varian

NSCopying vs NSMutableCopying for custom object

2013-10-27 Thread Trygve Inda
My object looks like: @interface MyObject : NSObject { MyOtherObject* library; NSString*identifier; NSString*name; BOOL removed; } @property (nonatomic, retain) MyOtherObject*library; @property (copy, readwrite)NSString* identifier; @proper