I have an NSMutableArray, that should be only modified by the owner object (MyObject). so the first attemp was to make it a readonly property. The problem is that this class implements NSCoding, and NSCoding requires the archived objects to be a readwrite property.
Then I thought of having a private property (declared in m file), and have a public method that return my private array. But then this would be a reference to the array, and other classes would be able to modify it.
My Methods should not return a copy of this array either, because I want the other classes to be able to modify each item= in this array, but not the array itself.
QUESTION: How can I have a public property, that is readonly, and at the same time be able to archive and unarchive it?