Jeremy Ellison
6a4b3d78b3
Merge branch 'unit-testing' into xml-parser
...
Conflicts:
RestKit.xcodeproj/project.pbxproj
2011-03-23 10:34:02 -04:00
Blake Watters
83f77e60ae
Fixed bug with warnings
2011-03-06 14:16:40 -05:00
Blake Watters
d46b1f06e7
Merge branch 'issue-warning-for-rel-notfound' of https://github.com/seletz/RestKit into 0.9
2011-03-06 13:59:34 -05:00
Blake Watters
f1fa33a45d
Remive duplicate definition of updateModel:fromElements:
2011-03-06 13:56:14 -05:00
Blake Watters
6c351c1ef9
Merge branch 'updates' of https://github.com/ahinz/RestKit into seeding
...
Conflicts:
Code/CoreData/RKManagedObjectStore.h
Code/CoreData/RKManagedObjectStore.m
2011-03-05 13:06:21 -05:00
Stefan Eletzhofer
1754a610c0
Revert "Fix CF http 303 error."
...
This reverts commit dff95edcfd .
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch issue-warning-for-rel-notfound
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: Code/ObjectMapping/RKDynamicRouter.m
#
2011-03-03 12:16:55 +01:00
Blake Watters
6ad118b822
Silenced a couple of Xcode 4 warning. Don't send a serialization with a GET request by default
2011-03-02 17:23:16 -05:00
Stefan Eletzhofer
9184b2b0f2
Add a nice warning if we don't find a model class for a relationship in RKObjectMapper setRelationshipOfModel:forElements
2011-03-02 12:57:46 +01:00
Stefan Eletzhofer
dff95edcfd
Fix CF http 303 error.
2011-03-02 11:11:14 +01:00
Stefan Eletzhofer
a02e13f8d1
fix duplicate definition of updateModel:fromElements:
2011-03-02 11:04:20 +01:00
Jeremy Ellison
bc482efd31
Working XML Support. Twitter example working (XML and JSON)
2011-03-01 13:54:00 -05:00
Blake Watters
e03c6d3d10
Fixed crash during dealloc of RKClient due to initialization of baseURL observer using a blank host. Updated the object mapper to support class/keypath when loading a single object. Some updates to the UISpec harness to get things working again.
2011-02-25 14:42:50 -05:00
Blake Watters
07034e3878
Update for object initializer inside the mapper
2011-02-11 10:02:25 -05:00
Adam Hinz
166eeeb566
Provide more generic constructors for the object store and object
...
manager
2011-02-05 15:31:47 -05:00
Blake Watters
39a77057ed
Removed saveObjectStore method on RKObjectManager, step toward separating Core Data from the base object mapping. RKObjectLoader now ensures that the object store is persisted appropriately before object loaders are sent
2011-01-21 00:56:17 -05:00
Blake Watters
07796df253
Refactored the Rails router to respect properties specified by the model objects. Introduced new support to allow models to modify RESTful object loaders just before they are sent. Sample app completely works. Really fucking happy with how this is turning out!
2011-01-21 00:15:02 -05:00
Blake Watters
3d2601f79c
Imported object store header and temporarily exposed a method until I can clean up the core data dependencies.
2011-01-20 23:01:02 -05:00
Blake Watters
bf1cadc72e
Implemented RKMakePathWithObject. Cleaned up some TODO's
2011-01-20 11:24:47 -05:00
Blake Watters
f7553d7ac0
Found a nasty bug in object mapping with nil values vs missing key paths. Polished login and sign up patterns thoroughly. Login/Logout & sign up are functional again. Now to move through the rest of the app
2011-01-20 00:14:21 -05:00
Blake Watters
9af28d3070
Cleanup project structure to match typical TT projects
2011-01-17 19:21:57 -05:00
Blake Watters
319f7355af
Working on new example
2011-01-16 21:43:21 -05:00
Jeremy Ellison
ac53cf9f2e
Always return an NSManagedObjectContext from the NSThreadDictionary. Do not bless the one on the main thread. Ensure merges happen on the main thread.
...
Clean up error alert because of removal of goOffline support (as it was broken).
2011-01-13 14:33:28 -05:00
Jeremy Ellison
471a4ad137
RKObjectLoader should be set up with the object managers client, not the shared one.
...
This fixes support for apps using multiple baseURLs via multiple clients or managers.
2011-01-13 13:41:52 -05:00
Jeremy Ellison
6a5ee2af7e
Revert "Remove per-file copyrights"
...
This reverts commit 91e7c6bb5e .
2011-01-12 15:27:19 -05:00
Jeremy Ellison
91e7c6bb5e
Remove per-file copyrights
2011-01-12 15:05:22 -05:00
Jeremy Ellison
634185f48a
RKResponse should start loading on didReceiveData: or didSendBodyData, whichever is called first.
...
This prevents didSendData RKRequestDelegate method from being called before didStartLoading.
Remove goOffline and goOnline support from RKObjectManager. This did not work in the current implementation.
2011-01-12 13:20:26 -05:00
Jeremy Ellison
a4e7e60467
Functionally complete new example.
2011-01-11 13:57:28 -05:00
Jeremy Ellison
a4c3fc9dae
Merge branch 'master' of github.com:twotoasters/RestKit
2011-01-06 15:48:31 -05:00
Jeremy Ellison
f690fa19f3
The RKRailsRouter no longer sends params with delete requests.
...
The RKObjectLoader will now clean up deleted objects inside of processLoadModelsInBackground:
2011-01-06 15:47:09 -05:00
Jeff Arena
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
2011-01-06 11:55:43 -08:00
Blake Watters
46974bb4c7
Removing extraneous logging from previous commit
2011-01-03 15:34:49 -05:00
Blake Watters
8fc71f0fb0
Introduced new missing element mapping policy for controlling whether or not nil values will be set for missing elements from payloads.
2011-01-03 15:31:24 -05:00
Jeff Arena
cf03116f54
fix for posting online/offline notifications
2010-12-11 01:55:21 -08:00
Jeff Arena
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)
2010-12-08 09:45:26 -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
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
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
Blake Watters
66bcb412c1
Check for JSON response type before parsing
2010-10-28 16:09:40 -04: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
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
0127df862d
Added support for tracking upload progress
2010-10-26 14:05:29 -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