Commit Graph

462 Commits

Author SHA1 Message Date
Blake Watters
d926e240f8 Introduce RKPropertyMapping abstract superclass for RKAttributeMapping and RKRelationshipMapping.
Add primitives for working with attribute, relationship, and property mapping objects.
2012-08-28 14:14:20 -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
00a89d3a4b Add count method to RKMappingResult 2012-08-24 13:15:43 -04:00
Blake Watters
c372a02b29 Add request descriptor class 2012-08-24 09:23:19 -04:00
Blake Watters
3d5d42bd1f Use copy for value properties on response descriptor 2012-08-24 09:22:59 -04:00
Blake Watters
7791604763 Migrate HTTP utility functions into a proper home 2012-08-24 09:22:28 -04:00
Blake Watters
46323ecc2d RKMappingDescriptor -> RKResponseDescriptor 2012-08-24 08:48:29 -04:00
Blake Watters
9a4d3f81a5 Style tweaks 2012-08-23 18:45:08 -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
51f771efcd Generalize status code handling 2012-08-23 14:23:44 -04:00
Blake Watters
d0df342093 Eliminate modern Objective-C dictionary access in favor of method call 2012-08-22 20:08:01 -04:00
Blake Watters
4b09a44f57 License boilerplate 2012-08-20 14:23:10 -04:00
Blake Watters
63743e2263 Initial integration of new RKMappingDescriptor class. Convert RKObjectMapper to ARC 2012-08-17 13:10:37 -04:00
Blake Watters
7084a1fafb Improve description output on RKAttributeMapping 2012-08-17 13:10:07 -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
3b686125b8 Fix references in Examples/ to eliminated RKDirectory class 2012-08-15 08:03:07 -04:00
Blake Watters
0ff963161f Add addAttributeMappingsFromDictionary: 2012-08-14 09:57:28 -04:00
Blake Watters
4d745fcddc Remove duplicate method definitions 2012-08-14 09:57:28 -04:00
Blake Watters
318c880170 Add basic description for inspecting mapping results 2012-08-09 17:13:38 -04:00
Blake Watters
632a1de039 Minor method signature change on serializer 2012-08-07 17:06:57 -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
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
8183591ccd Add DEPRECATED_ATTRIBUTE_MESSAGE for a few methods. 2012-07-26 17:04: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
b9979e337e Add DEPRECATED_ATTRIBUTE_MESSAGE(message) macro to display a helpful recommendation message along with the default deprecation message. 2012-07-18 12:25:41 -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
Blake Watters
f0706dbdbf Work in progress
Conflicts:
	Code/CoreData/RKManagedObjectLoader.h
	Code/CoreData/RKManagedObjectLoader.m
	Code/CoreData/RKManagedObjectMapping.m
	Code/CoreData/RKManagedObjectMappingOperation.m
	Code/CoreData/RKManagedObjectStore.m
	Code/CoreData/RKManagedObjectThreadSafeInvocation.h
	Code/CoreData/RKManagedObjectThreadSafeInvocation.m
	Code/CoreData/RKSearchableManagedObject.m
	Code/ObjectMapping/RKObjectLoader.m
	Code/ObjectMapping/RKObjectMapper.h
	Code/ObjectMapping/RKObjectMappingOperation.m
	RestKit.xcodeproj/project.pbxproj
	Tests/Logic/CoreData/RKManagedObjectThreadSafeInvocationTest.m
2012-07-13 13:07:42 -04:00
Jawwad Ahmad
c28461f573 Make sendObject:method:usingBlock: public 2012-07-11 17:06:39 -04:00
Blake Watters
fe9bfe59da [REBASE] Rename Router -> RouteSet. Add new Router class for generating URL's from the routes. 2012-07-11 17:00:32 -04:00
Blake Watters
6c3b75039b [REBASE ME] Refactored Router for simplicity, nearly done with design. Initial support for relationship loading from object manager. 2012-07-11 16:52:46 -04:00
Blake Watters
2c980ec4cd Fix type disagreements with sourceObject & targetObject properties 2012-07-11 16:47:24 -04:00
Blake Watters
ec6cdd1356 Migrate performSelectorOnMainThread and performSelectorInBackground invocations to GCD 2012-07-11 16:45:08 -04:00
Blake Watters
57e4e0933a Migrated from Grand Central Dispatch queue for mapping into an NSOperationQueue to enable KVO 2012-07-11 16:43:19 -04:00
Blake Watters
f18f9337f3 Added support for comparison of attribute, relationship, and object mappings via isEqualToMapping:. closes #803 2012-07-11 16:16:27 -04:00
Blake Watters
3b10117be7 New mapping provider helpers. refs #779 2012-07-11 16:07:09 -04:00
Blake Watters
ffa2fc685e Introduced named route support. refs #779
* Provides for the registration of route either by class and method or via symbolic name
* Changed routes representation from simple dictionary to RKRoute model
* Eliminated RKRouter as a protocol
* Migrated RKObjectRouter to Network layer and renamed to RKRouter
* Added router as property of RKClient, RKObjectManager now proxies access
2012-07-11 16:06:55 -04:00
Blake Watters
a80b8c94f9 Cleanup invalid arguments from method signature refactoring 2012-07-11 13:03:36 -04:00
Blake Watters
64d1d35da2 Various stylistic cleanups to Connection Mapping in preparation for merge. refs #748, #593 2012-07-11 12:14:28 -04:00
Charlie Savage
f039f45f75 Support 1 to many relationships for connect relationship. 2012-07-11 12:14:28 -04:00
Charlie Savage
f0e8bbe284 Update new connectRelationship implementation based on feedback from Blake. 2012-07-11 12:14:28 -04:00
Charlie Savage
2a434375f0 Reimplement connectRelationship as described in issue #593. 2012-07-11 12:14:28 -04:00
Jawwad Ahmad
82f4630d36 Whitespace syntax cleanup. Refs #614 2012-07-11 10:41:38 -04:00
Jawwad Ahmad
7cbccfd322 Delete ivars that are already @synthesized. Refs #614. 2012-07-11 10:34:29 -04:00
Roger Nolan
2bc93af7cf Change type of _sourceObject ivars to match the property which is alised to them.
With unmatched type between property and storage, lldb gets confused when printing the object.

Error is: instance method ''sourceObject' has incompatible result types in different translation units ('NSObject *' vs. 'id')

Signed-off-by: Roger Nolan <rog@hatbat.net>
2012-06-16 00:27:41 -04:00
Jawwad Ahmad
abb46c382c Ensure the stars for all pointers belong to the variable rather than the type. Refs #614 2012-06-04 22:47:30 -04:00
Jawwad Ahmad
eaa5484b01 Placing opening braces on a new line for methods to match Apple convention. Refs #614
Used uncrustify's "nl_fdef_brace = add" option to detect issues.
2012-06-04 00:36:19 -04:00
Jawwad Ahmad
734b0350fe Fix spacing issues identified by uncrustify's "sp_before_sparen = add" option. Refs #614 2012-06-03 23:27:41 -04:00