colemancda / NetworkObjects

Swift backend / server framework (Pure Swift, Supports Linux)
MIT License
259 stars 29 forks source link

add optional, client-side date attribute for date when cached. #40

Closed colemancda closed 10 years ago

colemancda commented 10 years ago

To replace the current method of determining when a resource was fetched, NOAPICachedStore should have another initialization option which will be the name of a date attribute to add to the entities. Since a entity description can be changed at runtime, we can use this to modify the original managed object model and add a date attribute to all the entities (excluding abstract and sub entities).

The current implementation archives a NSDictionary which does not scale well with thousands of managed objects.