On The Usefulness Of Core Data’s User Info
Drew McCormack stores some metadata in the managed object model to aid in implementing copy and paste:
Core Data defines a few metadata properties for each attribute and relationship. For example, properties can be transient, optional, and have a particular data type. The
userInfo
dictionary allows you to extend this basic set, defining your own metadata. By doing this, you are able to write code for traversing your object graph that is much more generic and flexible. (It is interesting to note that Apple itself adds metadata touserInfo
, for stipulating whether to include an entity in a sync, for example.)