Commit Graph

185 Commits

Author SHA1 Message Date
Jeff Arena
f875ec167d fixed timing issue with setting loadedTime 2010-12-04 22:23:30 -08:00
Jeff Arena
af0c7ab36e fix bug with setting loaded time when loading from cache 2010-12-04 09:06:39 -08:00
Jeff Arena
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) 2010-12-02 19:28:25 -08:00
Jeff Arena
507509fd3e bug fixes for issues related to error conditions that were preventing our request lifecycle from completing correctly 2010-12-02 14:17:58 -08:00
Jeff Arena
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 2010-12-02 13:22:38 -08:00
Jeff Arena
6249ece2bc Merge branch 'reachability-queue-three20' of git://github.com/twotoasters/RestKit into reachability-queue-three20
Conflicts:
	Code/Network/RKRequest.m
	RestKit.xcodeproj/project.pbxproj
2010-12-01 21:06:54 -08:00
Blake Watters
a53f28e339 First cut at queue support. 2010-12-01 14:56:16 -05:00
Jeff Arena
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 2010-11-30 19:38:27 -08:00
Jeff Arena
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 2010-11-30 15:08:05 -08:00
Jeff Arena
fbe8457dd7 fix for updating thread dictionary cache of existing managed objects to ensure objects created during a single mapping operation are not duplicated 2010-11-17 14:31:12 -08:00
Jeff Arena
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 2010-11-15 19:50:49 -08:00
Jeff Arena
2a4f9435b9 new init methods on three20 models to allow for parameter setting 2010-11-12 15:17:42 -08:00
Blake Watters
5a72d0d57d Fix for submission with incorrect MIME Type when only MIME type is provided 2010-11-12 17:28:37 -05:00
Blake Watters
9471aeb3b5 add missing retains 2010-11-12 16:49:42 -05:00
Jeff Arena
7e1e1807bd dry-up object store saves on the manager; use an ivar over the request userdata for storing the source on the manager 2010-11-09 09:35:13 -08:00
Jeff Arena
e6c5d9adee fixed delegate call that was improperly passing an nsstring in place of an nserror 2010-11-01 20:34:03 -07:00
Jeff Arena
0a3fd958d8 Merge branch 'master' of git://github.com/twotoasters/RestKit 2010-10-28 15:00:53 -07:00
Jeff Arena
23adeae524 added support for additional objectloader delegate method to three20 component 2010-10-28 15:00:31 -07:00
Blake Watters
66bcb412c1 Check for JSON response type before parsing 2010-10-28 16:09:40 -04:00
Blake Watters
e0844d1b88 Merge branch 'master' of github.com:twotoasters/RestKit 2010-10-28 13:13:20 -04:00
Blake Watters
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 2010-10-28 13:12:03 -04:00
Jeff Arena
cf7acd0ffa changes to ensure we do not attempt to trigger a load when we are in offline mode 2010-10-27 17:02:20 -07:00
Jeff Arena
57e2403624 add support to core data component to hook up relationships from foreign keys present in the server payload 2010-10-27 17:00:31 -07:00
Blake Watters
8fef65e4df Added optional MIME Type auto-detection using MobileCoreServices 2010-10-27 14:54:37 -04:00
Blake Watters
0d8bc8c92d Added assertion that attached file exists at the path 2010-10-27 13:21:19 -04:00
Blake Watters
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) 2010-10-27 13:00:24 -04:00
Blake Watters
e428af15fe Merge branch 'master' of github.com:twotoasters/RestKit into streamingupload 2010-10-26 14:05:44 -04:00
Blake Watters
0127df862d Added support for tracking upload progress 2010-10-26 14:05:29 -04:00
Blake Watters
f02e48f252 Switched out ContentTypeHTTPHeader for HTTPHeaderValueForContentType so all RKRequestSerializable methods start with an HTTP prefix. Deprecated ContentTypeHTTPHeader. Additional comments to make streaming support straightforward 2010-10-26 13:38:23 -04:00
Blake Watters
6febbe325f Cleaned up naming and removed debugging log statements 2010-10-26 13:12:50 -04:00
Blake Watters
7d3269869b Checking in working version of the streaming uploader. Just need to finish cleaning up the code. 2010-10-26 12:50:48 -04:00
Jeff Arena
2988ac9651 quited depracation warnings re. the old globalManager property on RKObjectManager 2010-10-22 09:43:25 -04:00
Blake Watters
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... 2010-10-21 13:31:21 -04:00
Blake Watters
deef2a63ce Fix for nasty infinite loop when the resourcePath begins with a substitution param 2010-10-21 11:42:47 -04:00
Jeff Arena
32fe2d3e24 Merge branch 'master' of git://github.com/twotoasters/RestKit 2010-10-21 11:29:57 -04:00
Jeff Arena
10d00cf14b clear 2010-10-21 11:29:20 -04:00
Blake Watters
4427844e07 Introduced objectLoaderDidLoadUnexpectedResponse: delegate method for handling odd-ball responses during an object load 2010-10-20 21:04:20 -04:00
Blake Watters
bd48ae37db Changed globalClient and globalManager to sharedClient and sharedManager to be more in line with Cocoa framework. Marked old methods as deprecated. 2010-10-20 20:29:27 -04:00
Blake Watters
3b0308e2ad Updated code comments 2010-10-20 15:31:30 -04:00
Blake Watters
1a42e8865e Remove accidentally committed log statement 2010-10-20 15:00:59 -04:00
Blake Watters
5440420aa8 Check if objectStore is set before saving 2010-10-20 14:54:48 -04:00
Blake Watters
b1800e3975 Clean up references to RKModelManager 2010-10-20 13:57:20 -04:00
Blake Watters
d1883ddc11 make object loader retain self during send operations 2010-10-20 13:57:16 -04:00
Blake Watters
5fc241ee94 plug memory leak 2010-10-20 13:55:20 -04:00
Blake Watters
4b9170ec3d Use relative include paths instead of system 2010-10-20 11:46:31 -04:00
Blake Watters
724091b5a1 Added basic specs covering the Rails router. Added some documentation to the headers 2010-10-19 19:20:08 -04:00
Blake Watters
e5100bd7e5 Removed dependency on regexkitlite 2010-10-19 16:18:46 -04:00
Blake Watters
1e6a7ce7ef Added docs to the dynamic router 2010-10-19 15:55:07 -04:00
Blake Watters
30754f9c0a Added RestKitLite and implemented Dynamic Router 2010-10-19 15:48:23 -04:00
Blake Watters
3dff8b0f0d Merge branch 'master' of github.com:twotoasters/RestKit into managedobjectcleanup
Conflicts:
	Code/ObjectMapping/RKObjectLoader.m
2010-10-19 14:28:18 -04:00