Commit Graph

304 Commits

Author SHA1 Message Date
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
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