title: How do you mark a property as 'readonly' for CoreData?
body: <p>We have an application which I am updating, which also involves reorganising and flattening a CoreData model. Everything builds fine, but when I try to set some of the properties in CoreData, it complains that the properties in question are set to 'read only' and that no setter method can be generated.</p>
  
  <p>No matter where I look, I can't find any place in the Core Data modeller to mark the property as such, nor can I find out if mogenerator generated it this way on purpose.</p>
  
  <p>Does anyone know where the property is marked as 'readonly'?</p>
  
  <p><strong>Update</strong></p>
  
  <p>I've figured out the problem and it has nothing to do with either Core Data or with mogenerator. It actually has to do with the fact that it had a protocol defined which had the same name property marked as readonly. The reason this only pops up now is mentioned in <a href="https://stackoverflow.com/q/3106801/571461">this SO question</a> as well.
  I've removed the extra info about syncservices which might confuse people. </p>
  
  <p>I'll be adding an answer which notes the only way I know of setting a Core Data object to readonly with mogenerator, since that's an answer to this question. Any other methods to do this can still be answered as well.</p>