Commit Graph

935 Commits

Author SHA1 Message Date
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
81bcd17056 WIP on API improvements for RKForm 2012-07-11 16:03:12 -04:00
Jamie Forrest
86c0233c58 call stringForObjectValue from stringFromDate to fix failing test. add coverage for the serialization output of stringForObjectValue. refs #726 2012-07-11 14:26:43 -04:00
Jamie Forrest
86bc549869 RKDotNetDateFormatter now overrides stringForObjectValue. refs #726 2012-07-11 14:26:43 -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
f368f9a16c Add findInstancesOfEntity method to cache to support one to many relationships. 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
Blake Watters
76538c2ecb Fix invalid format string in RKLogError invocation 2012-07-11 12:12:26 -04:00
Blake Watters
bc2bbbc77d Fix warning due to invalid format string 2012-07-11 12:12:26 -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
Blake Watters
5898b95d33 Simplified logic in cocoa-oauth by creating a single method for building NSURLRequests. Update RKRequest to leverage new API 2012-07-04 12:22:07 -04:00
Blake Watters
d02c1aa74c Release the previous fetch results controller via property access. fixes #825, #826 2012-06-21 20:55:36 -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
46bf6e6295 Remove extra space before comma. Refs #614
Used uncrustify's "sp_before_comma = remove" option to detect issues.
2012-06-03 23:42:46 -04:00
Jawwad Ahmad
6d71b2d82b Add missing space after comma. Refs #614
Used uncrustify's "sp_after_comma = add" option to detect issues.
2012-06-03 23:38:36 -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
Jawwad Ahmad
746f31c26d Fix issues identified by uncrustify's "sp_assign = add" option. Refs #614 2012-06-03 23:14:09 -04:00
Jawwad Ahmad
2cf60ffb86 Fix a few spacing issues. Refs #614 2012-06-03 22:51:00 -04:00
Jawwad Ahmad
086dceee66 Standardize to have space after @property. Refs #614 2012-06-03 22:36:35 -04:00
Jawwad Ahmad
10433089a4 Strip trailing whitespace. Refs #614 2012-06-03 22:33:31 -04:00
Jawwad Ahmad
e4882e2e00 Added #import "RKManagedObjectLoader.h" to CoreData.h 2012-05-31 18:42:12 -04:00
Jawwad Ahmad
9b25c6bbf2 loadTableFromResourcePath: should be chained to loadTableFromResourcePath:usingBlock: Closes #782. 2012-05-31 17:52:22 -04:00
Blake Watters
014a4dbdff Merge branch 'release/0.10.1' into development 2012-05-25 23:33:54 -04:00
Blake Watters
8647fa5f42 Fix issue where grouping objects by section in RKTableController and loading an empty collection would fail to refresh table view. 2012-05-25 13:46:18 -04:00
Blake Watters
fa88dd44ef Fix type mismatch assertion in cases where JSON/XML payload contains a string value for an integer primary key. fixes #754 2012-05-24 19:09:39 -04:00
Blake Watters
1dc765c774 Fix static analyzer warning 2012-05-24 19:06:04 -04:00
Blake Watters
59c449c2e2 Cleanups to and test coverage expansion of RKTableController API's. refs #765 2012-05-24 12:53:51 -04:00
Blake Watters
680ca666d6 Update RKTestFactory to silence logging output during setup/tear down operations. closes #764
* Introduced new logging helpers for silencing components.
* Check for existence of data store at path before firing deletion to avoid log warning on failure.
* Silence logging for reachability and cache during factory initialization of RKClient and RKObjectManager
* Adjust log levels on cache components from info to debug
2012-05-24 12:53:45 -04:00
Blake Watters
992bfb96cc Reworked table controller state into a bit mask to coalesce state change into a single observation. fixes #753
* Added RKLogIntegerAsBinary() helper for logging bit masks
* Implemented RKTableControllerDidLoadObjectsNotification for static and fetched results table controllers
* Cleaned up state definitions within table controller
* Documentation cleanups
2012-05-23 17:25:57 -04:00
Blake Watters
98c8780a31 Implemented support for type coercions in primaryKeyAttribute API's. closes #758 2012-05-23 17:25:48 -04:00
Blake Watters
86ac038957 Cancel current object loader when loading a table view 2012-05-21 18:11:21 -04:00
Blake Watters
9ca2ba2a3f Clean up inconsistencies with 'cancelled' and 'cancel' to match Cocoa (isCancelled) 2012-05-21 18:11:15 -04:00
Blake Watters
871ab1389e Ensure managed object connections are established across appropriate managed object contexts 2012-05-21 13:09:27 -04:00
Blake Watters
5cecb58c23 Add RKLog helper for displaying detailed key-value validation failure information. closes #750 2012-05-21 13:09:23 -04:00
Blake Watters
dc47a7aae3 Ensure managed object connections are established across appropriate managed object contexts 2012-05-21 13:04:56 -04:00
Blake Watters
a4bdc03961 Add RKLog helper for displaying detailed key-value validation failure information. closes #750 2012-05-21 13:04:49 -04:00
Blake Watters
31191f59b6 Migrate initialization of default error mapping from RKObjectManager to RKObjectMappingProvider 2012-05-21 12:09:27 -04:00
Eric Chamberlain
01607a9a09 Fix for https://github.com/RestKit/RestKit/issues/709 - [RKManagedObjectThreadSafeInvocation serializeManagedObjectsForArgument:withKeyPaths:] is not properly serializing managed objects
Fixed RKManagedObjectThreadSafeInvocation to properly handle serialization when the key is a keyPath.

Updated RKManagedObjectThreadSafeInvocationTest to test keyPath keys.
2012-05-19 17:01:41 -04:00
Blake Watters
f585d34f91 Ensure creation of Application Data directory when initializing Managed Object Store. fixes #657 2012-05-19 16:29:01 -04:00
Blake Watters
e681b85be4 Eliminate duplication of request method to string logic in [RKRequest HTTPMethod] 2012-05-19 15:50:35 -04:00
Blake Watters
ada95e0281 Migrate RKResponse property from RKObjectLoader to RKRequest. refs #527 2012-05-18 20:05:25 -04:00
Blake Watters
489bb0423a Fix static analyzer issues 2012-05-18 20:01:56 -04:00
Blake Watters
4105625776 Replace v0.9.4 references with 0.10.0 2012-05-18 18:05:41 -04:00
Blake Watters
016f13dad0 Convert all tabs to four spaces. refs #743 2012-05-17 18:10:59 -04:00