Commit Graph

557 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
Sixten Otto
cef335d02b Allow storage in non-Documents directories
Add a new class method that takes a directory parameter, and add a corresponding parameter to the private initializer. The other class methods pass nil for that new parameter. The value for the pathToStoreFile property is now calculated in the initializer, and stored in an instance variable.
2011-04-12 20:02:48 -04:00
Sixten Otto
ecb0a5bd5e Improve RKManagedObjectStore's error handling
Add RKManagedObjectStoreDelegate protocol and a delegate property. Right now, all of the notifications are of errors/failures. Some code has been restructured so that return values are always consulted BEFORE the error parameter is examined.
2011-04-12 20:02:37 -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
Blake Watters
8432923bba Added Peter Marks to the contributors 2011-04-05 22:26:48 -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
f3036a6a13 Fixed another small typo in the Advanced RestKit draft 2011-04-05 19:08:20 -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
334db23e9d updated OCMock static library 2011-04-05 12:32:40 -04:00
Blake Watters
7589060e6d Merge branch '0.9' of github.com:twotoasters/RestKit into 0.9 2011-04-05 10:06:43 -04:00
Jeremy Ellison
322599e14a Updates from development of Go Try It On v2.0:
* Updates YAJL Parser not to raise an exception and crash when it encounters invalid JSON. The other parsers need to be aligned with this behavior and the delegate methods updated. See Pivotal Story: https://www.pivotaltracker.com/story/show/11925617
* Added requestDidCancel: delegate invocation for tracking cancellation of requests.
* Ensure that the request queue timer is cleared during indeterminate deferral of request loads.
2011-04-05 10:02:34 -04:00
Blake Watters
8b89d017c4 Tweaked Xcode 4 install instructions with notes from Larry Legend (larry@houseoflegend.com) 2011-04-04 19:48:57 -04:00
Blake Watters
c87d5e1801 Merge branch '0.9' of github.com:twotoasters/RestKit into 0.9 2011-04-04 19:43:44 -04:00
Blake Watters
e816937703 Fix error in method definition 2011-04-04 19:43:21 -04:00
Blake Watters
c23eac631d remove unconnected timeout constant 2011-04-04 19:43:21 -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
162df39b79 adding design docs for improvements to RKRequestQueue 2011-04-04 19:43:21 -04:00
Blake Watters
46720fb6e3 add RKManagedObjectLoader.h to public Copy Headers task 2011-04-04 19:43:20 -04:00
Blake Watters
cd77899245 added example for duplicated keys from Foursquare. Need to get support for this 2011-04-04 19:43:20 -04:00
Jeremy Ellison
11278c3f49 Added some specs for the RKXMLParser 2011-04-04 19:43:20 -04:00
Chris Bruce
cc34501642 Corrected some typos in the Advance Tutorial text. 2011-04-04 19:24:46 -04:00
Blake Watters
4d0b8afcc2 Fix error in method definition 2011-04-04 10:11:29 -04:00
Blake Watters
1b434cbfe5 remove unconnected timeout constant 2011-04-03 16:42:34 -04:00
Blake Watters
f914703983 added support for set nil/ignore missing relationships and specs 2011-04-02 15:46:07 -04:00
Blake Watters
2814de1140 adding design docs for improvements to RKRequestQueue 2011-04-01 10:02:28 -04:00
Blake Watters
1086ecc09b add RKManagedObjectLoader.h to public Copy Headers task 2011-03-31 20:10:49 -04:00
Blake Watters
889f574875 added example for duplicated keys from Foursquare. Need to get support for this 2011-03-31 15:39:48 -04:00
Blake Watters
e7029e580f Merge branch '0.9' of github.com:twotoasters/RestKit into 0.9 2011-03-29 10:49:30 -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 0.9.1.1 2011-03-29 10:47:11 -04:00
Jeremy Ellison
09bcbd023d Added some specs for the RKXMLParser 2011-03-29 08:43:44 -04:00
Blake Watters
1d50d07f25 Merge branch 'master' into 0.9 0.9.1 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
aea1df21e3 Remove upgrade note that is no longer applicable 2011-03-27 23:06:36 -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
6ae94fb0bf Cleaned up target name and dependencies for XML support 2011-03-27 22:03:32 -04:00
Blake Watters
5411f54d02 Implemented lightweight authentication scheme setup. Enables HTTP Digest AUTH 2011-03-27 01:19:37 -04:00
Blake Watters
6fd9586e9c Fixed RestKit aggregate build scheme 2011-03-25 10:54:43 -04:00
Blake Watters
92d56da684 Cleaned up warnings 2011-03-25 10:39:39 -04:00
Blake Watters
6e6144dc26 Fixed warning with UISpec dependency 2011-03-25 10:36:11 -04:00
Blake Watters
b65e93cebb Updated response loader to handle RKResponse and object arrays 2011-03-24 22:53:49 -04:00
Blake Watters
c9611526e6 Ditching workspace for the RestKit project. May add one for the Examples/ directory later 2011-03-24 22:41:55 -04:00
Blake Watters
0795112df0 Merge branch '0.9' into unit-testing
Conflicts:
	RestKit.xcodeproj/project.pbxproj
2011-03-24 22:21:16 -04:00
Blake Watters
2b159fefc2 Removed pch reference created earlier today, add legacy copy headers script to project 2011-03-24 22:12:19 -04:00
Blake Watters
4266ca5981 Switched target dependency to aggregate target to ensure headers are populated in proper order 2011-03-24 22:01:24 -04:00
Blake Watters
4809d9e0a6 Run Copy Headers task after compilation of libRestKitThree20 to ensure they are copied into Build dir. Story #11526713 2011-03-24 21:54:51 -04:00
Blake Watters
9141cea6e3 Merge branch 'unit-testing' of github.com:twotoasters/RestKit into unit-testing 2011-03-24 15:00:37 -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
Blake Watters
b1c6c6d57a Added the note about the bullseye icon 2011-03-24 13:38:46 -04:00