Commit Graph

  • 88489747e8 add additional response convenience method for checking for a 503 response code; quiet a compiler warning regarding depracated client class method; add default support for generating a uialertview when restkit encounters a 503 response; added ability to turn 503 error on/off, as well as ability to customize the alert Jeff Arena 2011-01-06 11:55:43 -08:00
  • 0449380476 Fix deprecation warning in earlier change. Fixed a sequencing problem with the overloaded accessors on RKRequest Blake Watters 2011-01-06 14:51:44 -05:00
  • b31e6426a5 Add new RKReachabilityState, RKReachabilityIndeterminate. Make RKRequestQueue smart, don't start dequeuing requests until reachability state has been determined. Simplify examples. Jeremy Ellison 2011-01-06 14:12:14 -05:00
  • 46974bb4c7 Removing extraneous logging from previous commit Blake Watters 2011-01-03 15:34:49 -05:00
  • 8fc71f0fb0 Introduced new missing element mapping policy for controlling whether or not nil values will be set for missing elements from payloads. Blake Watters 2011-01-03 15:31:24 -05:00
  • e49d8462a9 Yield to the run loop for a tenth of a second to allow the network reachability observer to be scheduled. This prevents issues where requests dispatched from an app delegate are denied access to the network. Blake Watters 2011-01-03 13:23:14 -05:00
  • e7ac2b4577 Merge branch 'master' of github.com:twotoasters/RestKit Blake Watters 2011-01-03 12:52:25 -05:00
  • f1db54c156 Introduced RKMakeURL and RKMakeURLPath convenience methods for generating NSURL and NSString URL's quickly against the sharedClient's base URL. This can be useful if you have some web content in your app that loads off of sub-paths and want the convenience & flexibility of working off of resourcePath's instead of full URL's. Blake Watters 2011-01-03 12:49:31 -05:00
  • 340e587704 Refactor JSONRepresentation to stringFromObject: on RKParser. Fixes https://github.com/twotoasters/RestKit/issues/#issue/6 Jeremy Ellison 2011-01-03 12:40:20 -05:00
  • 058e55242c replace use of NSString method stringByAddingPercentEscapesUsingEncoding with CFString flavor CFURLCreateStringByReplacingPercentEscapesUsingEncoding, to ensure we do not miss any characters that should be escaped when performing RFC3875 percent escaping Jeff Arena 2010-12-30 14:59:30 -08:00
  • 716ecb4f26 added RKResponse property exposing the cookies available from the RKResponse headers Jeff Arena 2010-12-30 13:29:11 -08:00
  • 29f82dff77 fix for bug introduced in commit df05be1cbb8c08fe0dd6; now that we are checking the request method in the params setter, we need to ensure we set the method before setting the params when creating and preparing to send an RKRequest object from RKClient, otherwise we will lose all params for all methods other than GET Jeff Arena 2010-12-30 13:28:01 -08:00
  • 394ebb307f Don't pass a URL into Reachability Blake Watters 2010-12-30 14:28:41 -05:00
  • 2367ba4293 Make SCNetworkReachability use just the hostname. Fix examples to check for network connectivity. Jeremy Ellison 2010-12-30 14:22:22 -05:00
  • df62bce0dd add unauthorized convenience method on rkresponse Jeff Arena 2010-12-29 17:04:37 -08:00
  • a61728aa28 Fix incorrect comments about retaining object loaders. Fixed deprecated references to globalManager/globalClient Blake Watters 2010-12-27 21:56:38 -05:00
  • 979d79d414 Updated example project Base SDK Blake Watters 2010-12-27 21:23:57 -05:00
  • 667dcd51c8 Fixed incorrect mention about Core Data being optional. Blake Watters 2010-12-27 15:36:14 -05:00
  • 7283f19e43 Merge branch 'reachability-queue-three20' Blake Watters 2010-12-23 14:10:17 -05:00
  • df05be1cbb Merge branch 'master' of https://github.com/pashields/RestKit into pashields-master Blake Watters 2010-12-13 17:49:04 -05:00
  • cf03116f54 fix for posting online/offline notifications Jeff Arena 2010-12-11 01:55:21 -08:00
  • 2b4a95df3c added caching for filteredObject on the filterable model class to prevent expensive filtering operations every time we grab the objects from the model; added code to prevent an automatic load in offline mode when we have no cached objects, as our use of an error condition to signal a request failed in offline mode triggers a three20 error overlay that we likely do not want in what should be considered a normal operating mode (e.g. app offline with no objects for a view is not an error) Jeff Arena 2010-12-09 11:47:20 -08:00
  • e991ad7033 change RKRequest delegate didfinishload method signature to be a bit cleaner; added code to turn off the reachability observer when the app becomes inactive; changed online/offline state code to support an undetermined state at initial launch, so as to ensure we get all our proper notifications during first run; remove unnecessary debug logging from rkrequestqueue; removed three20 model code that was triggering a forced offline state, which currently does not have a recovery path (e.g. if the app is forced offline, we currently have no built-in mechanism to allow a force back online) Jeff Arena 2010-12-08 09:45:26 -08:00
  • f3af0feefc Adding authentiction headers to request before sending to stop challenge responses from being generated server-side on each request. This should cut down overall request-response cycles by 50% when dealing with authenticated services. Marc Weil 2010-12-05 12:07:41 -05:00
  • f875ec167d fixed timing issue with setting loadedTime Jeff Arena 2010-12-04 22:23:30 -08:00
  • af0c7ab36e fix bug with setting loaded time when loading from cache Jeff Arena 2010-12-04 09:06:39 -08:00
  • d91223b6fa fixed a crash related to parsing a non-JSON error from a response string; fixed issue with callbacks being fired after a request has been cancelled; fixed leak of resourcePath in RKRequestTTModel; fixed issue with autoreleasepool being drained before background thread objects have been transferred to the callback method; fixed issues with mutating the requestqueue array during enumeration while performing bulk cancels; added additional logging that has been helpful in tracking down many of these crashes (to be removed prior to merge to master) Jeff Arena 2010-12-02 19:28:25 -08:00
  • 507509fd3e bug fixes for issues related to error conditions that were preventing our request lifecycle from completing correctly Jeff Arena 2010-12-02 14:17:58 -08:00
  • c9ba879937 removed duplicate delegates on RKObjectLoader; inverted control for communicating request completion from RKResponse to RKRequest; added state tracking to RKRequest for loaded and loading states; changed queue processing logic to check request states before firing new requests; removed retains of RKObjectLoader from RKRequestTTModel since our queue is handling retains for all asynchronous RKRequest flavors; added separate state tracking to RKRequestTTModel since there are subtle differences between the meaning of loaded/loading in Three20 versus our RKRequest states; removed delegate forwarding code from RKObjectLoader since it is no longer an RKRequestDelegate (which was quite ugly to begin with); removed unnecessary error contructor for RKResponse that was only being used to fire delegate callbacks when an RKRequest failed to fire in offline mode; added TODOs to deep-dive into synchronous request handling Jeff Arena 2010-12-02 13:22:38 -08:00
  • 6249ece2bc Merge branch 'reachability-queue-three20' of git://github.com/twotoasters/RestKit into reachability-queue-three20 Jeff Arena 2010-12-01 21:06:54 -08:00
  • a53f28e339 First cut at queue support. Blake Watters 2010-12-01 14:56:16 -05:00
  • 39f3d568e2 added reachability support at the manager and client level; added code to short circuit requests if offline; fixed issue with source parameter on loader related to passing managed objects across thread boundaries; added resource path property to the loader Jeff Arena 2010-11-30 19:38:27 -08:00
  • c19d305b45 fix for mapper bug that was assuming a 1:1 mapping between object classes and elements; removed method from dictionary category that made the 1:1 mapping assumption that caused the mapper bug; collapsed the RKRequestModel and RKRequestTTModel classes into RKRequestTTModel; made changes to the Three20 integration to perform all cache loading and network loading in response to Three20 load calls; used isOutdated TTModel method to enforce refreshRate on RKRequestTTModel Jeff Arena 2010-11-30 15:08:05 -08:00
  • 785d14cb42 Merge branch 'master' of https://github.com/twotoasters/RestKit Patrick Shields 2010-11-23 18:00:58 -05:00
  • fbe8457dd7 fix for updating thread dictionary cache of existing managed objects to ensure objects created during a single mapping operation are not duplicated Jeff Arena 2010-11-17 14:31:12 -08:00
  • 8b38d4387a add null check to prevent exceptions when we have created a local object that has yet to be synced with the server, and thus does not yet have a primaryKey assigned Jeff Arena 2010-11-15 19:50:49 -08:00
  • 2a4f9435b9 new init methods on three20 models to allow for parameter setting Jeff Arena 2010-11-12 15:17:42 -08:00
  • 5a72d0d57d Fix for submission with incorrect MIME Type when only MIME type is provided Blake Watters 2010-11-12 17:28:37 -05:00
  • 9471aeb3b5 add missing retains Blake Watters 2010-11-12 16:49:42 -05:00
  • 7e1e1807bd dry-up object store saves on the manager; use an ivar over the request userdata for storing the source on the manager Jeff Arena 2010-11-09 09:35:13 -08:00
  • bea7ec607c Required for not getting CF 303 errors. Should probably investigate this more, but don't need to use this. Patrick Shields 2010-11-07 12:13:46 -05:00
  • 16ce43aedd Non core data example works, but relies on core data lib. Patrick Shields 2010-11-03 22:12:21 -04:00
  • c0d160da29 Cleaning up twitter core data example. Added missing frameworks, static lib builds, and fixed out of date api calls. Patrick Shields 2010-11-03 22:05:43 -04:00
  • e6c5d9adee fixed delegate call that was improperly passing an nsstring in place of an nserror Jeff Arena 2010-11-01 20:34:03 -07:00
  • 0a3fd958d8 Merge branch 'master' of git://github.com/twotoasters/RestKit Jeff Arena 2010-10-28 15:00:53 -07:00
  • 23adeae524 added support for additional objectloader delegate method to three20 component Jeff Arena 2010-10-28 15:00:31 -07:00
  • 66bcb412c1 Check for JSON response type before parsing Blake Watters 2010-10-28 16:09:40 -04:00
  • e0844d1b88 Merge branch 'master' of github.com:twotoasters/RestKit Blake Watters 2010-10-28 13:13:20 -04:00
  • 9c0404e36e Added MIMEType setter flavor for RKParams addData. Typical use case for a data field is to want to set the MIME Type. Added MobileCoreServices.framework to requirements and added to the UISpec target Blake Watters 2010-10-28 13:12:03 -04:00
  • cf7acd0ffa changes to ensure we do not attempt to trigger a load when we are in offline mode Jeff Arena 2010-10-27 17:02:20 -07:00
  • 57e2403624 add support to core data component to hook up relationships from foreign keys present in the server payload Jeff Arena 2010-10-27 17:00:31 -07:00
  • 8dbd8c5d69 remove www Blake Watters 2010-10-27 16:52:43 -04:00
  • 61e1d1f1e2 Added Twitter link Blake Watters 2010-10-27 16:51:47 -04:00
  • 8fef65e4df Added optional MIME Type auto-detection using MobileCoreServices Blake Watters 2010-10-27 14:54:37 -04:00
  • 0d8bc8c92d Added assertion that attached file exists at the path Blake Watters 2010-10-27 13:21:19 -04:00
  • 81c66cb37f Add check to RKObjectLoader to verify that the response type isJSON before starting mapping. This can avoid a nasty crash if the remote side sends back an HTML payload (i.e. an error page) Blake Watters 2010-10-27 13:00:24 -04:00
  • e428af15fe Merge branch 'master' of github.com:twotoasters/RestKit into streamingupload Blake Watters 2010-10-26 14:05:44 -04:00
  • 0127df862d Added support for tracking upload progress Blake Watters 2010-10-26 14:05:29 -04:00
  • f02e48f252 Switched out ContentTypeHTTPHeader for HTTPHeaderValueForContentType so all RKRequestSerializable methods start with an HTTP prefix. Deprecated ContentTypeHTTPHeader. Additional comments to make streaming support straightforward Blake Watters 2010-10-26 13:38:23 -04:00
  • 6febbe325f Cleaned up naming and removed debugging log statements Blake Watters 2010-10-26 13:12:50 -04:00
  • 7d3269869b Checking in working version of the streaming uploader. Just need to finish cleaning up the code. Blake Watters 2010-10-26 12:50:48 -04:00
  • 2988ac9651 quited depracation warnings re. the old globalManager property on RKObjectManager Jeff Arena 2010-10-22 09:43:25 -04:00
  • ec0c221a33 Allow for mapping directly into an object that doesn't have an element registered with the mapper. We check that the class implements RKObjectMappable and blow up otherwise. Updated comments on the loader... Blake Watters 2010-10-21 13:31:21 -04:00
  • deef2a63ce Fix for nasty infinite loop when the resourcePath begins with a substitution param Blake Watters 2010-10-21 11:42:47 -04:00
  • 32fe2d3e24 Merge branch 'master' of git://github.com/twotoasters/RestKit Jeff Arena 2010-10-21 11:29:57 -04:00
  • 10d00cf14b clear Jeff Arena 2010-10-21 11:29:20 -04:00
  • 4427844e07 Introduced objectLoaderDidLoadUnexpectedResponse: delegate method for handling odd-ball responses during an object load Blake Watters 2010-10-20 21:04:20 -04:00
  • bd48ae37db Changed globalClient and globalManager to sharedClient and sharedManager to be more in line with Cocoa framework. Marked old methods as deprecated. Blake Watters 2010-10-20 20:29:27 -04:00
  • 3b0308e2ad Updated code comments Blake Watters 2010-10-20 15:31:30 -04:00
  • 1a42e8865e Remove accidentally committed log statement Blake Watters 2010-10-20 15:00:59 -04:00
  • 5440420aa8 Check if objectStore is set before saving Blake Watters 2010-10-20 14:54:48 -04:00
  • b1800e3975 Clean up references to RKModelManager Blake Watters 2010-10-20 13:57:20 -04:00
  • d1883ddc11 make object loader retain self during send operations Blake Watters 2010-10-20 13:57:16 -04:00
  • 5fc241ee94 plug memory leak Blake Watters 2010-10-20 13:55:20 -04:00
  • 4b9170ec3d Use relative include paths instead of system Blake Watters 2010-10-20 11:46:31 -04:00
  • fb9274f6af Added RestKit.h back to copy headers task Blake Watters 2010-10-20 11:41:27 -04:00
  • 79b26706e6 Set headers for RKDynamicRouter and RKRailsRouter public Blake Watters 2010-10-20 11:29:05 -04:00
  • c95d874bb5 all_load on UISpec target Blake Watters 2010-10-19 19:53:56 -04:00
  • 724091b5a1 Added basic specs covering the Rails router. Added some documentation to the headers Blake Watters 2010-10-19 19:20:08 -04:00
  • e5100bd7e5 Removed dependency on regexkitlite Blake Watters 2010-10-19 16:18:46 -04:00
  • 1e6a7ce7ef Added docs to the dynamic router Blake Watters 2010-10-19 15:55:07 -04:00
  • 30754f9c0a Added RestKitLite and implemented Dynamic Router Blake Watters 2010-10-19 15:48:23 -04:00
  • 3dff8b0f0d Merge branch 'master' of github.com:twotoasters/RestKit into managedobjectcleanup Blake Watters 2010-10-19 14:28:18 -04:00
  • 2fbdfb9c37 Work in progress Blake Watters 2010-10-19 14:27:17 -04:00
  • 92b39313f0 Fixed bug with load happening too soon Blake Watters 2010-10-19 14:21:39 -04:00
  • 12ef5f3827 moved to binary build of OCMock 1.70 Blake Watters 2010-10-19 12:31:03 -04:00
  • 82e2a2792d fix issue with missing loader reference to objectstore; removed use of singleton to access store reference in the loader Jeff Arena 2010-10-19 11:05:03 -04:00
  • 8c75302a9a Updated UISpecRunner Blake Watters 2010-10-19 10:46:26 -04:00
  • 33782fce83 Merge branch 'master' of git://github.com/twotoasters/RestKit Jeff Arena 2010-10-19 10:29:00 -04:00
  • 89f26fbe7f fix use of released object in debug message by relocating the release call Jeff Arena 2010-10-19 10:28:34 -04:00
  • b5d20c4c74 Merge branch 'master' of github.com:twotoasters/RestKit Jeremy Ellison 2010-10-19 10:16:31 -04:00
  • cc9ea3ee6c don't crash the sbjson parser Jeremy Ellison 2010-10-19 10:12:49 -04:00
  • ddfe0aae22 Merge branch 'master' into managedobjectcleanup Blake Watters 2010-10-18 22:23:54 -04:00
  • 33c6eba84b Checking in work on managed object cleanup Blake Watters 2010-10-18 22:10:40 -04:00
  • c3e28d0ecb Merge branch 'master' into restkit-cache Jeff Arena 2010-10-18 16:51:58 -04:00
  • 1a6fdeafd4 introduce RKManagedObjectCache protocol to CoreData component; cleanup remaining NSFetchRequest ivars that are now unused; add RKURL class for making resourcepath and baseurl params available to higher level components; cleanup Three20 library to incorporate latest updates from GateGuru codebase Jeff Arena 2010-10-18 16:36:24 -04:00
  • d9748843ca Normalized method names for loaderWith to objectLoaderWith for alignment with the delegate method signatures. Exposed objectLoader primitive used for constructing getObject/postObject/putObject/deleteObject and documented. Blake Watters 2010-10-18 15:56:36 -04:00
  • 81e57606c4 Fix the loaders for specific objects. Requests were not actually getting sent. Jeremy Ellison 2010-10-18 10:54:48 -04:00
  • 592b2a9e32 initial pass at changing fetchRequest APIs to work with a collection of fetch requests; also performed some API cleanup on RKManagedModel Jeff Arena 2010-10-14 19:14:55 -07:00
  • 7c01d54fa3 Add configurable error parsing to the object mapper. Jeremy Ellison 2010-10-14 12:51:12 -04:00