Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhysforyou/rwpcoredata
Helpful boilerplate code for Core Data projects
https://github.com/rhysforyou/rwpcoredata
Last synced: 5 days ago
JSON representation
Helpful boilerplate code for Core Data projects
- Host: GitHub
- URL: https://github.com/rhysforyou/rwpcoredata
- Owner: rhysforyou
- License: mit
- Created: 2014-01-15T00:59:03.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-13T09:31:48.000Z (almost 11 years ago)
- Last Synced: 2024-12-17T04:07:34.700Z (7 days ago)
- Language: Objective-C
- Size: 180 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RWPCoreData
Core Data is a great framework, but it also requires you to write a hefty amount of boilerplate code for even the simplest of projects. RWPCoreData aims to solve some of the headaches associated with using Core Data in new projects through a few core features:
- The ability to instantiate managed objects via an `init` or `initWithContext:` method
- Creation and management of a main managed object context
- Automatic loading of your data model from `.xcdatamodeld` files present in your project
- Simplified of communication with remote APIs## Classes
The library provides two main classes which your managed objects should inherit from:
- [**RWPManagedObject**](http://cocoadocs.org/docsets/RWPCoreData/0.8.0/Classes/RWPManagedObject.html) which provides easier instantiation, a main context, and so on. Classes should inherit from this if they aren't loaded from an external API.
- [**RWPRemoteManagedObject**](http://cocoadocs.org/docsets/RWPCoreData/0.8.0/Classes/RWPRemoteManagedObject.html) makes a few assumptions about external APIs that make it easier to serialise API responses into objects.