Blake Watters
87d0cd13de
Added support for registering object class mappings as keyPaths in addition to element names. closes #82
2011-04-28 13:09:50 -04:00
Blake Watters
308b6c5dd2
Updates to RKObjectLoader to fix issues where keyPath was not always respected and willSendForObjectLoader: not invoked as expected. Expanded spec coverage to fix these issues. fixes #80 , fixes #81
2011-04-28 00:05:55 -04:00
Blake Watters
a1aa5fce94
Merged pull request #63 from andr8w/target-object-keypath.
...
Minor changes to use keyPath and willSendWithObjectLoader when a targetObject is set.
2011-04-27 20:02:29 -07:00
Blake Watters
ff2367d284
Moved query path appending to RKPathAppendQueryParams for convenience. Deprecated RKClient flavor.
2011-04-27 09:05:18 -04:00
Blake Watters
c35d0bab1d
Implemented substantial catalog example application covering advanced usage of RestKit:
...
* Cleaned up remaining warnings about if (self = [super init])
* RKParamsExample - Highlights multi-part uploads
* RKRequestQueueExample - Working with the request queue
* RKBackgroundRequestExample - Examples of using the background policies for backgrounding requests
* RKReachabilityExample - Shows how to work with the reachability observer
* RKRelationshipMappingExample - Shows how to map related objects from JSON into an object graph
* RKCoreDataExample - Shows the basics of using RestKit's Core Data examples
Also rearranged dispatch of RKRequest delegate method for didStartLoad: to ensure requeue callbacks get invoked in a timely manner. refs #62
2011-04-22 11:28:56 -04:00
Andrew Newdel
e277e636f8
Add a modified handleTargetObject implementation from RKManagedObjectLoader to give RKObject a chance to respond to willSendWithObjectLoader.
2011-04-21 19:32:29 -04:00
Andrew Newdel
bbce5abfd4
Use the keyPath property to map a subset of the response for a single target object.
2011-04-21 19:24:41 -04:00
Blake Watters
acf7352b40
Added support for mapping an array of objects when given a target object class and element registration is being used as well. fixes #60
2011-04-20 16:17:00 -04:00
Blake Watters
f55073ecce
Merge branch 'master' of https://github.com/Vossy/RestKit into 59-url-mapping-support
2011-04-20 08:29:00 -04:00
Justin Voss
952096b289
Added support for mapping NSURL properties. Fixes #52
2011-04-19 19:14:52 -05:00
Robert McNally
b7df8e1f0a
Eliminate use of 'class' in method signatures. It is a reserved word in Objective-C++. Replaced with 'objectClass'. fixes #58
2011-04-19 14:22:04 -04:00
Chad Podoski
f44abbee27
Generalize RKRequestQueue and add NSDecimalNumber type support to RKObjectMapper. refs #50
2011-04-18 17:21:01 -04:00
Blake Watters
9af6a59c79
Initial implementation of documentation generation using the Appledoc parser. refs #48
...
* Cleaned up various mismatches in method signatures that were preventing documentation generation
* Removed naked ampersands from comments as they cause XML parser failures during docset generation via appledoc
2011-04-14 22:55:58 -04:00
Blake Watters
9593612aab
Closes gh-47. Initial implementation of OS X build integrating changes submitted by Felix Holmgren ( https://github.com/Felixyz/RestKit ).
...
* Factored out display of alerts into RKAlert interface that hides the differences between UIKit and OS X Cocoa.
* Added macosx to supported platforms to enable build on OS X.
* Configured project to use conditional architectures to enable building on OS X and iOS from the same targets.
* Implemented a bare-bones OS X example app.
* Create `rake build` task for building RestKit against iOS and OS X SDK for quick testing.
2011-04-12 21:02:25 -04:00
Blake Watters
9dcd7f3022
Removed superclass call to didFinishLoad: in RKObjectLoader. Was resulting in duplicated dispatch of life-cycle requests. Fixes #44
2011-04-12 19:11:31 -04:00
Peter Marks
35171084d1
[Story #11961455 ] Implements support for sending nested objects back to the remote server for processing:
...
* Introduce RKObjectMappable#relationshipsToSerialize to define nested relationships to post
* New helper methods for working with relationship serializations.
* Extended Rails router to serialize nested objects according to Rails idioms
2011-04-05 22:18:10 -04:00
Blake Watters
a648d26460
[ #11477593 ] Implemented background request policies and Specs. This provides functionality for continuing a request in the background using an iOS background task.
...
Introduces four modes for handling background requests:
* RKRequestBackgroundPolicyNone - The default behavior replicating pre-background behavior. No special action is taken with regards to backgrounding.
* RKRequestBackgroundPolicyCancel - On transition to the background, requests with this policy set will be cancelled automatically and the delegate informed.
* RKRequestBackgroundPolicyContinue - Requests with this policy will be continued in the background after the app has been transitioned.
* RKRequestBackgroundPolicyRequeue - Requests with this policy will be cancelled and then immediately placed onto the queue for processing the next time the app is returned to the foreground.
2011-04-05 13:06:06 -04:00
Blake Watters
15a3c9ae8e
added support for set nil/ignore missing relationships and specs
2011-04-04 19:43:21 -04:00
Blake Watters
9ed062121e
Fix for crash based on set nil for missing element policy. Added specs covering the crash. Merging directly to 0.9.1 and tagging as 0.9.1.1
2011-03-29 10:47:11 -04:00
Blake Watters
1d50d07f25
Merge branch 'master' into 0.9
2011-03-28 23:33:53 -04:00
Blake Watters
c90ec2770d
Finished cleanup of HTTP AUTH and XML Support. Ready to tag 0.9.1
2011-03-28 23:29:06 -04:00
Blake Watters
69c051a57a
Aligned target name with JSON parsers
2011-03-27 23:05:24 -04:00
Blake Watters
a298bc4dcf
Fix build problems
2011-03-27 22:53:08 -04:00
Blake Watters
227f35a20d
Merge branch '0.9' into xml-parser
...
Conflicts:
Examples/RKTwitter/Classes/RKTwitterViewController.m
README.md
RestKit.xcodeproj/project.pbxproj
2011-03-27 22:29:19 -04:00
Blake Watters
4c717e2a5b
Merge branch '0.9' into unit-testing
...
Conflicts:
RestKit.xcodeproj/project.pbxproj
2011-03-24 15:00:13 -04:00
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
2109fae1ba
Finished cleaning up Core Data support. Happy with the new organization
2011-03-19 22:06:51 -04:00
Blake Watters
88a1b013fc
Merge remote branch 'origin/0.9' into core-data-cleanup
...
Conflicts:
Code/CoreData/CoreData.h
Code/CoreData/RKManagedObjectStore.h
Code/CoreData/RKManagedObjectStore.m
Code/CoreData/RKObjectSeeder.h
Code/CoreData/RKObjectSeeder.m
Code/ObjectMapping/RKObjectLoader.m
Code/ObjectMapping/RKObjectManager.m
Code/ObjectMapping/RKObjectMapper.m
RestKit.xcodeproj/project.pbxproj
2011-03-19 21:26:13 -04:00
Blake Watters
a94456a01e
Committing changes to sync against 0.9
2011-03-19 20:59:54 -04:00
Blake Watters
4da3290d50
added JSON and object to NSException when mapping fails because of bad input
2011-03-17 22:20:04 -04:00
Blake Watters
9836023601
Added support for mapping cases where the left side of a dictionary is a registered keyPath and the right side is an array of objects
2011-03-15 16:20:34 -04:00
Blake Watters
7ff0ff1339
Ditches the Rails spec server app. Working on cleaning up unit testing situation. Still a couple of broken tests.
2011-03-09 17:39:32 -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
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
c495073497
Merge branch 'master' of github.com:twotoasters/RestKit into core-data-cleanup
...
Conflicts:
.gitignore
2011-02-21 20:25:01 -05:00
Blake Watters
0ea0a9b6d9
Cleaning up some TODO's and such
2011-02-13 02:59:37 -05:00
Blake Watters
3467ac5d49
DiscussionBoard and RKTwitter now build properly. May fold the code back out of RKManagedObjectLoader tomorrow.
2011-02-13 02:19:53 -05:00
Blake Watters
f83dc271f9
Finished cleaning up dependencies on Core Data. RKTwitter now builds without linking against Core Data or libRKCoreData.a
2011-02-13 02:04:51 -05:00
Blake Watters
a1216d0ea0
Merge branch 'master' of github.com:twotoasters/RestKit into core-data-cleanup
...
Conflicts:
Code/ObjectMapping/RKObjectMapper.m
2011-02-13 01:24:57 -05:00
Blake Watters
b9e4f57fb0
Work in progress factoring Core Data dependencies out of the Object Mapping layer
2011-02-13 01:19:37 -05:00
Blake Watters
07034e3878
Update for object initializer inside the mapper
2011-02-11 10:02:25 -05:00