Commit Graph

252 Commits

Author SHA1 Message Date
Blake Watters
cbc4c7169c Remove unnecessary retain from object loader initialization 2011-03-08 12:00:36 -05:00
Blake Watters
5b1c5dae7e Inform the delegate on synchronous requests 2011-03-08 11:36:31 -05: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
3cf66e5385 More improvements to the managed object store and seeding API's 2011-03-05 17:05:31 -05:00
Blake Watters
1405c0b404 Overhauled the object seeder API. It's much cleaner. Added example code to the RKTwitterCoreDataExample 2011-03-05 16:11:00 -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
Blake Watters
c6546feb70 Added new initializer for starting from a seed database. Need to finish cleaning up API and add example app. 2011-03-04 07:16:52 -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
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
bf48cf6559 More Xcode 4 crap 2011-02-15 20:25:22 -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
44e424850a Ooops. Use the IP from the hostname rather than the local wireless interface 2011-02-01 19:38:11 -05:00
Blake Watters
bff66e60cc Fixed bug where reachability did not work when initialized with an IP address in the base URL 2011-02-01 19:30:07 -05:00
daniel
20747ffa27 Merge branch 'master' of github.com:twotoasters/RestKit into new-example 2011-01-21 14:54:40 -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
8f863b4c50 Numerous cleanups to the DiscussionBoard example. Need to finish working through cleanups to the authentication process and polish off documentation. Should be ready for merge tomorrow night. 2011-01-18 23:25:19 -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
7177c88182 rename internal didStartLoading method name 2011-01-12 15:27:45 -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
90c85e632f Default loaded time should be equal to -defaultRefreshRate ago, thus ensuring the cache is outdated on the first load 2011-01-12 14:35:50 -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
378aaac12b Topic and post creating, editing, and deleting 2011-01-11 12:32:18 -05:00
Jeff Arena
d3a1059d68 fix bug with content type accessors in cases where the content type response header is nil 2011-01-10 16:10:30 -08:00
Blake Watters
35ae5c8717 Updated signatures to include RKRequestDelegate protocol 2011-01-10 16:29:58 -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
c20062cb4e fixed a memory leak associated with the new 503 alert strings on the client 2011-01-06 12:09:42 -08:00
Jeff Arena
13c431d8c4 Merge branch 'master' of git://github.com/twotoasters/RestKit
Conflicts:
	Code/Network/RKRequest.m
	Code/Network/RKRequestQueue.m
2011-01-06 12:00:26 -08: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
0449380476 Fix deprecation warning in earlier change. Fixed a sequencing problem with the overloaded accessors on RKRequest 2011-01-06 14:51:44 -05:00
Jeremy Ellison
b31e6426a5 Add new RKReachabilityState, RKReachabilityIndeterminate.
Make RKRequestQueue smart, don't start dequeuing requests until reachability state has been determined.
Simplify examples.
2011-01-06 14:12:14 -05: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
Blake Watters
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. 2011-01-03 13:23:14 -05:00