Tuesday, Mar 8, 2011 [Tweets] [Favorites]

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 to userInfo, for stipulating whether to include an entity in a sync, for example.)


Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment