Commit Graph

249 Commits

Author SHA1 Message Date
Blake Watters
10377d0a70 Overhaul RKParser API's for clarity and simplicity:
* Adds support for NSJSONSerialization. closes #476
* Renames RKParser to RKSerialization
* Renames RKParserRegistry to RKMIMETypeSerialization
* Rework serialization implementations API's to use class methods
* Fold together string and regular expression matching for MIME Type registrations
* Port serialization implementations to working off of NSData instead of NSString. refs #762
* Migrate JSONKit to being an optional component. See https://github.com/RestKit/RKJSONKitSerialization
2012-09-04 13:07:31 -04:00
Blake Watters
e67848439c Migrate to NSData based parsing/serialization. Slim down RKObjectSerializer and rename to RKObjectParameters. refs #762 2012-09-03 16:23:22 -04:00
Jawwad Ahmad
285586a5b5 Some code formatting cleanup. 2012-09-02 13:15:14 -04:00
Jawwad Ahmad
8cbdb5f7ed Trailing whitespace cleanup from files in the Code directory.
Used the following command from within the Code dir:
git ls-files *.m *.h *.json | xargs /usr/bin/sed -i '' -E 's/[[:space:]]*$//'
2012-09-02 12:51:45 -04:00
Jawwad Ahmad
c70ab49457 Delete @synthesize statements that are no longer needed. (Works with current 4.4.1 release of Xcode). 2012-09-02 12:28:45 -04:00
Blake Watters
9c9126c6ce Adds support for establishing Core Data Relationship connections using keyPath in addition to fetches across the object graph. refs #913 2012-08-31 17:48:07 -04:00
Blake Watters
dfec6b8615 Migrate the category fix macros into RKMacros.h 2012-08-31 17:47:44 -04:00
Blake Watters
a59ced28a5 Fix crash when performing an import with a nil keyPath mapping 2012-08-31 17:47:44 -04:00
Blake Watters
48802c09da Primary Key predicate associated object should be set non-atomically 2012-08-31 17:47:44 -04:00
Jawwad Ahmad
4834da10ea Call the proper designated initializer in order to resolve connection mappings not being applied. 2012-08-30 13:33:33 -04:00
Blake Watters
8542568159 Invoke designated initializer from RKEntityMapping 2012-08-29 19:00:45 -04:00
Blake Watters
fe3b710e9a Add RK prefix to module header files to disambiguate on import from CocoaPods 2012-08-28 21:01:07 -04:00
Blake Watters
a868d7fa2a Delete deprecations from RKManagedObjectStore 2012-08-28 17:37:21 -04:00
Blake Watters
ce6b0829e4 Convert RestKit to ARC 2012-08-28 17:34:58 -04:00
Blake Watters
d08046fc5d Remove the mapping provider in favor of response descriptors 2012-08-28 16:31:31 -04:00
Blake Watters
d36aa3291d Drop RestKit networking layer in favor of AFNetworking 2012-08-28 16:17:57 -04:00
Blake Watters
15acf30a66 Eliminate methods wrapping functionality provided by RKConnectionMapping within RKEntityMapping for simplicity and clarity 2012-08-28 13:37:07 -04:00
Blake Watters
7c76b493dd Update object loader to properly propagate errors back from mapper 2012-08-23 18:44:46 -04:00
Blake Watters
5852d7c997 Eliminate unnecessary manual tracking of inserted objects in favor of MOC insertedObjects: 2012-08-22 18:54:23 -04:00
Blake Watters
af36e72ac2 Add assertion for retrieval of object for delivery across thread boundaries 2012-08-22 18:51:36 -04:00
Blake Watters
7e968ac86b Execute existingObjectWithID: within a performBlockAndWait: 2012-08-22 18:50:33 -04:00
Blake Watters
f8db42c020 Small doc update 2012-08-22 18:50:04 -04:00
Blake Watters
e7d768dd2f Update RKObjectMapper to return a single NSError on failure. Update error codes 2012-08-17 13:09:47 -04:00
Blake Watters
9fd95cc380 Cleanup test breakage from method signature change 2012-08-15 20:52:12 -04:00
Blake Watters
9fa7a11fcf Update connection mapping signatures on RKEntityMapping to be more idiomatic 2012-08-15 16:35:54 -04:00
Blake Watters
a3a2718bc9 Header docs for the managed object mapping operation data source 2012-08-15 16:31:54 -04:00
Blake Watters
461f7a8035 Add missing @synthesize directive for Xcode < 4.5 2012-08-14 16:36:51 -04:00
Blake Watters
23093c63fb Work around crash due to non-nil initialization of error 2012-08-14 09:57:27 -04:00
Blake Watters
37c70e4c27 Migrate path utilities to C functions instead of encapsulating into static methods on RKDirectory to reduce API size 2012-08-14 09:57:27 -04:00
Blake Watters
975e1674a2 Improving assertion error when attempting to configure an entity mapping for an entity with a nil managed object class 2012-08-13 14:14:36 -04:00
Blake Watters
571909c8b4 Remove performBlockAndWait: in RKEntityByAttributeCache after encountering mysterious hangs 2012-08-09 17:12:51 -04:00
Blake Watters
9ff1152223 Comments cleanup 2012-08-07 17:13:26 -04:00
Blake Watters
6cc54fae9f Fix crashes during test suite execution due to delay during processing of NSManagedObjectContextDidSaveNotification 2012-08-07 16:59:19 -04:00
Blake Watters
1463a7d2f8 Cleanup log warnings on OS X related to NSUInteger typedef differences (unsigned int vs unsigned long) 2012-08-07 09:58:30 -04:00
Blake Watters
b246559112 Eliminate associative reference configuration of primary key attribute.
Given the updates to the managed object store configuration patterns, it makes
much more sense for primary key configuration to be done against a mutable entity
rather than having the fall-back onto an associative object.
2012-08-07 09:55:56 -04:00
Blake Watters
7885481337 Update comments and log messages 2012-08-03 12:32:18 -04:00
Blake Watters
544be269da Updated header documentation for RKManagedObjectStore 2012-08-02 10:32:58 -04:00
Blake Watters
232b3eb861 Implemented new search engine for managed objects. 2012-08-01 18:12:53 -04:00
Blake Watters
07aadeebdf Reimplemented the managed object store, converted managed object seeder to importer, cleaned up test breakage. 2012-07-26 17:33:35 -04:00
Jawwad Ahmad
6d3a9b5487 Fix "Failed to call designated initializer on NSManagedObject class" when running core data seed generation. 2012-07-25 11:45:14 -04:00
Blake Watters
66c9cd5f26 Remove object literal array access usage 2012-07-23 11:19:12 -04:00
Blake Watters
5af66a4e89 Finalized to existingObjectWithID: approach after benchmarking fetch request strategy 2012-07-20 16:09:58 -04:00
Blake Watters
093a76e7b2 Migrated to a single entity cache for the primary MOC instead of one per thread 2012-07-20 15:41:47 -04:00
Blake Watters
6b315fbd54 Updates to entity cache and other components to operate in parent/child context world. 2012-07-20 14:48:09 -04:00
Blake Watters
e952f451fb Eliminated the use of the ActiveRecord pattern across the library. 2012-07-20 14:48:09 -04:00
Jawwad Ahmad
ae8b98ac1a Add DEPRECATED_ATTRIBUTE_MESSAGE recommendations to RKEntityMapping.h 2012-07-18 12:27:12 -04:00
Blake Watters
046e277088 Make managedObjectCache optional on RKManagedObjectMappingOperationDataSource; Make RKManagedObjectMappingOperationDataSource.h public 2012-07-17 17:29:30 -04:00
Blake Watters
6af38b8b6d Obtain permanent object ID's for managed objects before sending via RKManagedObjectLoader 2012-07-17 16:26:21 -04:00
Blake Watters
a8f64e7982 Continued cleanup related to managed object context work 2012-07-17 13:44:50 -04:00
Blake Watters
b25a1833b3 Ported RestKit to using managed object contexts with concurrency types. Numerous cleanups and API updates. 2012-07-16 22:47:06 -04:00