Commit Graph

276 Commits

Author SHA1 Message Date
Blake Watters
175a90cabe Reorder logging statement so that logging occurs before sending of request to avoid sending message to a zombie instance. fixes #600 2012-03-20 20:43:14 -04:00
Blake Watters
0d709dbc07 Migrate dangling invocations of NSLog -> RKLog. refs #578 2012-03-20 20:43:14 -04:00
Blake Watters
749c6e389f Fix retain cycle causing leak for backgroundPolicy RKRequestBackgroundPolicyContinue. closes #548 2012-03-12 18:50:33 -04:00
Blake Watters
0448090504 Disabled invalid caching behavior for PUT & POST responses. fixes #589 2012-03-12 18:33:35 -04:00
Blake Watters
6723502372 Merge branch 'hotfix/545-conditional-nsorderedset' into development 2012-02-25 12:03:48 -05:00
Blake Watters
44ff8826f7 Invalidate timeout timer when POST body data is sent. fixes #535 2012-02-16 11:07:16 -05:00
Blake Watters
4d48ef4729 Fixed breakage in OS X support 2012-02-15 17:48:59 -05:00
Rui D Lopes
693d839364 Adding the ability to set a default content decoding other than NSUTF8StringEncoding whenever HTTP headers do not contain any information. closes #547 2012-02-15 14:28:03 -05:00
Blake Watters
948cc85873 Added new pre-flight delegate callbacks for customization of RKRequest and RKObjectLoader instances before dispatch 2012-02-15 12:06:24 -05:00
Blake Watters
efdf5157d3 Added documentation for RKClient block methods 2012-02-14 14:04:30 -05:00
Blake Watters
9d9dac257b Added documentation for wasSentToResourcePath:method: 2012-02-13 13:25:28 -05:00
Blake Watters
4142ffdb42 Reorganization and cleanups of Unit Tests
* Reorganized tests to accommodate split into Logic & Application.
* Eliminated 'Spec' naming in favor of 'Test' as the suite is entirely based on SenTest.
* Pulled majority of testing support classes up into the library and documented them.
* Introduced RKApplicationTests app for running the RKTableController UI tests
2012-02-10 17:32:23 -05:00
Blake Watters
a5cb5f5060 Implemented helper functions for converting between Strings and RKRequestMethod enum types. 2012-02-10 16:30:58 -05:00
Blake Watters
3d0f0ab39e Introduced the RKTableController component for iOS.
RKTableController provides a flexible, integrated system for driving iOS table views using
the RestKit object mapping engine. Local domain objects can be mapped into table cells within a
collection or presented for editing as part of a form. There are three flavors of table controllers
available:

* Static Tables: RKTableController can be used to render simple static tables that are composed of RKTableItems
presented in RKTableSections. Table items can quickly be built and added to a table without a backing model
or can have content object mapped into them for presentation.
* Network Tables: RKTableController can also render a table with the results of a network load. The typical use
case here is to have RestKit retrieve a JSON/XML payload from your remote system and then render the content into
a table.
* Core Data Tables: RKFetchedResultsTableController can efficiently drive a table view using objects pulled from a
Core Data managed object context. Typical use-cases here are for the presentation of large collections that are
pulled from a remote system, offering offline access, or speeding up a UI by using Core Data as a fast local cache.

RKTableController supports a number of bells and whistles including integrated searching/filtering and pull to refresh.
2012-02-10 16:30:54 -05:00
Brian Morton
923f2efa1d Clean up documentation and organize RKResponse header.
* Add appledoc section headers and reorganize methods/properties to fit into the sections.
* Fill in missing documentation, parameter definitions, and return values.
* Fix documentation formatting and styling.
* Clean up asterisk placements in variable declarations.
2012-02-09 14:56:10 -08:00
Brian Morton
0eebd6c3f7 Fix formatting in RKNotifications header.
* Clean up asterisk spacing.
* Format comment block to be consistent.
2012-02-09 13:42:24 -08:00
Brian Morton
9d5e142d10 Clean up documentation and organize RKRequestQueue and RKRequestQueueDelegate header and implementation.
* Add appledoc section headers and reorganize methods/properties to fit into the sections.
* Fill in missing documentation, parameter definitions, and return values.
* Fix documentation formatting, styling, and placement.
* Remove appledoc signficant asterisk in implementation comment.
2012-02-09 03:02:17 -08:00
Brian Morton
642bd793ca Document and organize RKRequestCache header.
* Document entire RKRequestCache header.
* Add appledoc section headers and reorganize methods and properties to fit into sections.
* Clean up asterisk placements in variable declarations.
2012-02-09 02:19:51 -08:00
Brian Morton
e3841ea23c Clean up documentation and organization in RKRequestSerialization header and implementation.
* Add/change appledoc section headers to be consistent.
* Reorganize methods and properties to fit under their respective sections.
* Fill in missing parameter definitions and return values.
* Fix documentation formatting, styling, and placement.
* Clean up asterisk placements in variable declarations.
2012-02-09 01:41:51 -08:00
Brian Morton
55dd517e2c Clean up documentation and organization in RKRequest header.
* Add/change appledoc section headers to be consistent.
* Reorganize methods and properties to fit under their respective sections.
* Fix documentation whitespace to be consistent.
* Fill in missing documentation, parameter definitions, and return values.
* Fix documentation formatting, styling, and placement.
* Clean up asterisk placements in variable declarations.
* Fix indentation whitespace.
2012-02-09 01:31:35 -08:00
Brian Morton
308ec1e493 Clean up documentation and formatting in RKURL header and implementation.
* Add documentation and example to overview.
* Add appledoc section headers.
* Fill in missing documentation, parameter definitions, and return values.
* Clean up whitespace inconsistencies.
* Remove appledoc significant asterisk in non-documenting comment.
2012-02-09 00:05:21 -08:00
Brian Morton
764dbdb1dc Clean up documentation and formatting in RKRequestSerializable header.
* Reorganize documentation to be included in overview.
* Clean up asterisk placements in declarations.
* Add appledoc section headers.
* Fill in missing documentation, parameter definitions, and return values.
* Clean up whitespace inconsistencies.
2012-02-09 00:05:21 -08:00
Brian Morton
4eb9de3a34 Clean up documentation and formatting in RKReachabilityObserver header.
* Clean up asterisk placements in variable declarations.
* Add/fix appledoc section headers.
* Fill in missing documentation, parameter definitions, and return values.
* Clean up whitespace inconsistencies.
* Reorganize section layout for documentation clarity.
2012-02-09 00:05:21 -08:00
Brian Morton
27dbacca03 Clean up documentation and formatting in RKParamsAttachment header.
* Add documentation to overview.
* Clean up asterisk placements in variable declarations.
* Add appledoc section headers.
* Reorganize methods and properties for documentation clarity.
* Fill in missing documentation, parameter definitions, and return values.
* Clean up whitespace inconsistencies.
2012-02-09 00:05:21 -08:00
Brian Morton
a0719ac4a5 Clean up documentation and formatting in RKParams header.
* Add documentation and example to overview.
* Clean up asterisk placements in variable declarations.
* Add appledoc section headers.
* Fill in missing documentation, parameter definitions, and return values.
* Clean up whitespace inconsistencies.
2012-02-09 00:05:21 -08:00
Brian Morton
2a787e92a8 Clean up spacing in RKNotifications constants. 2012-02-09 00:05:21 -08:00
Brian Morton
1fa3ea400d Clean up documentation and formatting in RKOAuthClient header and implementation.
* Add example code to overview.
* Move <RKRequestDelegate> implementation detail to RKOAuthClient.m to clean up documentation
* Add missing documentation to all properties and methods.
* Rearrange sections for documentation purposes.
* Format blocks of documentation to match the project standard.
* Cleanup spacing in @property lines.
* Remove delegate assignment in initializers to be consistent with the rest of the project.
* Fix spec instances where the initializer with the delegate was used.
2012-02-09 00:05:21 -08:00
Brian Morton
e1f4e452e9 Clean up documentation and organization in RKClient header.
* Reorganize blocks of deprecated methods to move them to the bottom of the file.
* Add/change appledoc section headers to be consistent.
* Reorganize methods and properties to fit under their respective sections.
* Fix documentation whitespace to be consistent.
* Fill in missing documentation, parameter definitions, and return values.
* Clean up asterisk placements in variable declarations.
2012-02-09 00:05:21 -08:00
Brian Morton
58102533f1 Fixes an issue where the timeoutTimer wouldn't work for a synchronous request. Fixes #551.
* Removed the timer creation in RKRequest sendSynchronously.
* Pass the timeoutInterval to the NSURLRequest that is responsible for the synchronous request.
* Check if the error returned by NSURLRequest is NSURLErrorTimedOut and return an RKRequestConnectionTimeoutError if necessary.
* Add test for making sure the timeout works properly for a synchronous request.
2012-02-08 20:06:53 -08:00
Blake Watters
c19a500ca8 Fix indentation inconsistencies in dealloc 2012-01-24 20:45:20 -05:00
Blake Watters
98cb113abf Invalidate the timer before dispatching error delegate callbacks 2012-01-24 20:45:17 -05:00
Blake Watters
a719843c91 Drop the client prefix from the SSL validation properties added to RKRequest 2012-01-24 11:47:31 -05:00
Brian Morton
7174937bb8 Remove duplicate timer creation. Fixes #517. 2012-01-24 11:10:17 -05:00
Brian Morton
b2c4b2f677 Move RKRequest timeoutTimer creation to a helper method so that we can test the number of times it is invoked. 2012-01-24 11:10:17 -05:00
Blake Watters
9e0149fc0f Deprecate RKMakePathWithObjectAddingEscapes and cleanup usage within the Router 2012-01-24 09:51:05 -05:00
Christopher Swasey
7ea39690c5 Decouple RKResponse from sharedClient Fixes #430 2012-01-23 18:21:22 -05:00
Jeff Arena
7bf04e49ec Fix memory leaks in newly introduced queue code. Fixes #521. Fixes #522. 2012-01-23 17:52:29 -05:00
Brian Morton
b0fd4d4981 Remove duplicate timer creation. Fixes #517. 2012-01-23 10:33:13 -05:00
Brian Morton
7c84d89bdf Move RKRequest timeoutTimer creation to a helper method so that we can test the number of times it is invoked. 2012-01-23 10:33:07 -05:00
Jeff Arena
774f32d7db Remove use of stringByAppendingPathComponent: in RKURL init so as to handle cases where the resourcePath is longer than 1024 characters (which should never happen). Fixes #321. 2012-01-20 16:44:10 -05:00
Jeff Arena
c0cd23a14d Add setBody:forMIMEType: method to RKRequest. Fixes #227. 2012-01-20 14:09:25 -05:00
Jeff Arena
37f40d0d3a Add cacheTimeoutInterval as a settable property on RKClient and allow RKRequests to inherit the RKClient value when appropriate. Fixes #217 2012-01-20 12:40:50 -05:00
Jeff Arena
53ce2260bd Fixes #428, related to a misspelling in the request:didReceiveData:totalBytesReceived:totalBytesExpectedToReceive: 2012-01-20 12:13:40 -05:00
Jeff Arena
507dfb0cfe Copy our requestQueue array prior to fast enumeration to ensure no mutations of the underlying array occur while we are looping 2012-01-20 11:52:37 -05:00
Jeff Arena
6e80ae62ae Fix for #486 2012-01-20 11:45:04 -05:00
Blake Watters
5a92a661a8 Fix spelling errors for Cacheing -> Caching 2012-01-20 10:21:56 -05:00
Blake Watters
1d27f7bbbe Refactored object manager API's to de-emphasize delegates and removal duplication of blocks and delegates. Added block callbacks to RKObjectLoader. 2012-01-20 10:21:56 -05:00
Blake Watters
7c5ad95816 Updated all example projects to reflect changes. 2012-01-20 10:21:19 -05:00
Blake Watters
31dcb31188 Authored full documentation for the RKURL class 2012-01-20 10:21:18 -05:00
Blake Watters
89b02e7550 Refactored paginator to use RKURL rather than relying on its own baseURL and resource path. Expanded paginator documentation. 2012-01-20 10:21:18 -05:00