Commit Graph

445 Commits

Author SHA1 Message Date
Blake Watters
635b6257d1 Expose default headers as a property and rework intiialization logic to respect the AFHTTPClient instance with which the object manager was initialized. Update docs to reflect the changes. Add tests for initialization code paths. 2012-10-05 14:24:32 -04:00
Blake Watters
4060441abb Fix issue with exact substring path patterns failing to match 2012-10-04 22:26:43 -04:00
Blake Watters
25e1f9ed4d Don't send parameterization of the object with DELETE request's either. Update docs to reflect this. refs #947 2012-10-04 19:25:32 -04:00
Blake Watters
af234936ee Don't send object parameters when performing a getObject: closes #947 2012-10-04 19:20:58 -04:00
Blake Watters
82ff81222a Docs touch ups 2012-10-04 18:31:10 -04:00
Blake Watters
cf5ef24fe9 Eliminate use of associated objects on NSURL in favor of a smarter RKResponseDescriptor class to solve the relative URL problem. refs #966
Instead, fall back to treating all URL's as strings for matching purposes and manually performing relative URL testing. Adds `matchesURL:` and `matchesResponse:` methods to `RKResponseDescriptor`.
2012-10-04 14:11:05 -04:00
Blake Watters
174372dcf5 Fix a number of warnings about potential dereference of null pointer 2012-10-02 15:52:45 -04:00
Blake Watters
b41e56607a Migrate warning to the bottom of the document to clean up HTML formatting 2012-10-02 14:38:59 -04:00
Blake Watters
dc06c890a4 Find/replace renamed pathMatcher method signatures. closes #968 2012-10-02 13:57:35 -04:00
Jeff Arena
5b372f4cea Fix issues with passing NSErrors into blocks inappropriately. 2012-10-02 12:54:32 -04:00
Blake Watters
f467fa20b1 Merge pull request #965 from dmishe/doc_fixes
Doc fixes
2012-10-02 09:25:07 -07:00
Jeff Arena
fc36d69475 Fix error with local delete of managed object after performing a successful DELETE operation. 2012-10-02 11:00:20 -04:00
Blake Watters
2b7eca1fb4 Default savesToPersistentStore to YES 2012-10-01 23:11:03 -04:00
Blake Watters
d6cd6d7bba Add configuration for controlling persistent to the parent context or the persistent store 2012-10-01 22:41:08 -04:00
Dmitry Shevchenko
2310b5111d Fixed a typo 2012-10-01 21:06:13 -05:00
Blake Watters
c10321751c Rename primaryManagedObjectContext to persistentStoreManagedObjectContext since nobody can keep its role straight 2012-09-30 22:47:26 -04:00
Blake Watters
5cae20aabc Add note about route types during batch operation creation 2012-09-30 19:53:24 -04:00
Blake Watters
2280674f5a Touch up docs for batched object request operations 2012-09-30 19:30:35 -04:00
Blake Watters
8c34f0996b Enable the response mapper to read the objectID from the targetObject if the target object ID is nil. 2012-09-30 19:30:35 -04:00
Jeff Arena
c301060ab8 Add APIs to RKObjectManager for use in firing batches of operations. 2012-09-30 13:43:12 -04:00
Dmitry Shevchenko
451a88bada Moved lost comment for RKAssociateBaseURLWithURL 2012-09-28 16:15:21 -05:00
Dmitry Shevchenko
a09e8ce4eb Associate base URL after query parameters 2012-09-28 16:13:07 -05:00
Jeff Arena
a88f58db55 Remove avoidsNetworkAccess property in favor of leveraging NSURLCache capabilities under the hood. 2012-09-28 13:41:28 -04:00
Blake Watters
adc1d178fa Add cancellation API to RKObjectManager.
* Introduces `cancelAllObjectRequestOperationsWithMethod:pathPattern:`
* Make RKObjectRequestOperation cancel underlying request operation when cancelled
2012-09-27 22:33:19 -04:00
Blake Watters
e591547d90 Cleanup RKPathMatcher initializers to start with pathMatcher so they are easier to guess for auto-complete. 2012-09-27 22:31:48 -04:00
Blake Watters
f5511c972e Improve method naming 2012-09-27 20:14:15 -04:00
Blake Watters
fd16081797 Merge pull request #950 from aharren/feature/reboot-networking-layer
Use embedded variant of LibComponentLogging with prefix RK
2012-09-27 16:13:42 -07:00
Blake Watters
47965f361c Disable the avoidsNetworkAccess flag by default 2012-09-27 17:04:11 -04:00
Arne Harren
bc7c65f03b Switch to an embedded variant of LibComponentLogging with prefix RK 2012-09-27 21:47:36 +02:00
Blake Watters
458354484a Fix null dereference static analyzer warnings 2012-09-27 11:47:30 -04:00
Blake Watters
82e4c1ba94 Docs for the baseURL association functions 2012-09-26 23:51:15 -04:00
Blake Watters
8b256ab418 Fix baseURL associated objects 2012-09-26 23:38:20 -04:00
Blake Watters
ee9ae20823 Add associated object from request URL to baseURL in order to workaround issues with NSURLRequest clobbering the baseURL 2012-09-26 22:46:32 -04:00
Blake Watters
098edd1fec Throw a build failure if not compiled with ARC (boosted from AFNetworking/AFNetworking#541) 2012-09-26 20:44:17 -04:00
Blake Watters
afd9d16419 Formatting cleanups 2012-09-26 20:35:29 -04:00
Blake Watters
cda18ec3e4 Use RKMIMESerialization for serializing parameters instead of passing through to AFHTTPClient 2012-09-26 20:34:40 -04:00
Blake Watters
39f78d2cac Fix build errors, warnings, and breakage on OS X 2012-09-25 21:28:58 -04:00
Blake Watters
235f5fc579 Fix all build errors in unit tests. Restore execution of core mapping tests. 2012-09-24 22:44:20 -04:00
Blake Watters
979854bf5a Fix crash 2012-09-24 18:22:51 -04:00
Blake Watters
fe391b1b47 Docs formatting on router 2012-09-24 13:51:33 -04:00
Blake Watters
b0be4596da Formatting cleanups 2012-09-24 13:37:54 -04:00
Blake Watters
43be066e0b Docs touch ups 2012-09-21 22:58:17 -04:00
Blake Watters
6815ba6444 API refresh for mapping layer. Converted RKObjectMapper to RKMapperOperation. Expanded documentation. 2012-09-21 17:55:32 -04:00
Blake Watters
7e816904ff Docs update. Eliminate mappingOperationFromObject: 2012-09-20 19:11:38 -04:00
Blake Watters
c88855614e Export the RKErrorFromMappingResult function; eliminate dependence on RestKit.h header from RKResponseMapperOperation 2012-09-20 11:51:28 -04:00
Blake Watters
04abcb8369 Define errorMessage as an informal protocol for returning error message representations rather than the description method. Document RKErrorMessage. 2012-09-20 08:12:30 -04:00
Blake Watters
3876263039 Document and clean up the RKMappingResult interface 2012-09-20 08:12:29 -04:00
Blake Watters
1d1424da73 Updates to ensure AFNetworking builds with reachability from static library target 2012-09-20 08:12:29 -04:00
Blake Watters
711d6e654d Docs formatting touch-ups 2012-09-19 13:33:36 -04:00
Blake Watters
eaad20eb66 Add RKStringFromNetworkReachabilityStatus function 2012-09-19 13:30:59 -04:00