Commit Graph

84 Commits

Author SHA1 Message Date
Blake Watters
ef11b13c8e Reworked installation and build process to eliminate the need to configure the Header and Library search paths. Updated all example projects to match. This makes the use of the DerivedData directory a requirement going forward. fixes #323 2011-09-01 21:54:45 -04:00
Blake Watters
b96940cc64 Eliminated requirement to use -all_load linker flag. Fixed breakage in OS X builds due to ivar/property name disagreement. Removed references to all_load from the install docs. fixes #239 2011-09-01 20:52:46 -04:00
Blake Watters
d81079168c Expanded rake validate task to build all the example projects. fixes #300 2011-08-16 21:11:21 -04:00
Blake Watters
670234b775 Added support for polymorphic object mapping (Github #105, #244). This enables you to dynamically map objects to different destination classes or using different mapping strategies via configuration or callbacks. See Docs/Object Mapping.md for details.
Other changes include:
* Eliminated the RKObjectFactory protocol and implementations. Object mapping instances themselves are
now responsible for instantiating target objects for mapping.
* Introduced RKObjectAbstractMapping superclass for RKObjectMapping and RKObjectPolymorphicMapping.
* Updated example applications to use block object loaders (RKTwitter and RKTwitterCoreData)
* Refactored method signatures of RKObjectMapper, RKObjectMapping, and RKObjectMappingProvider to reflect the
existence of abstract mapping types. This was necessary to make polymorphic mappings integrate cleanly.
* Fixed overlap in RestKit error domains between network and object mapping. fixes #208
2011-07-30 16:00:36 -04:00
Blake Watters
32e08d31a6 Fix issues with login/logout on discussion board and show off new block helpers and URL mutation in the DBUser class. fixes #214 2011-07-24 19:16:36 -04:00
Blake Watters
a78b4c654d Added special 'App' logging component for logging messages via RKLog() from your app. closes #183 2011-06-30 15:11:58 -04:00
Blake Watters
5a2f937a52 Reworked notifications for consistency with Cocoa idioms. Simplified code paths through the queue. Tweaked the logging for easier info at the Debug level without having to drop down to Trace. 2011-06-29 16:18:18 -04:00
Blake Watters
853704b2fd Rework notifications to allow request queue to observe only the requests it dispatches instead of all of them. Fixes incorrectly decrementing loading count. 2011-06-29 15:36:10 -04:00
Blake Watters
3dfbaf1810 Updated to support setting default value instead of nil when an attribute is missing in the payload. For Core Data backed models, we consult the entity definition to obtain the default value. closes #117 2011-06-28 15:22:04 -04:00
Blake Watters
2493828414 Make imports of RKParser relative so they resolve correctly outside of the library project 2011-06-13 08:33:34 -04:00
Blake Watters
8e5fa664e8 Cleaned up miscellaneous artifacts from squashing object mapping 2.0 2011-06-11 20:34:10 -04:00
Blake Watters
9299cabc11 Implemented flexible logging solution utilizing the excellent LibComponentLogging library. 2011-06-11 20:25:28 -04:00
Blake Watters
69ded29245 Improved Three20 integration by leveraging object mapping to instantiate TTTableItems 2011-06-11 19:33:42 -04:00
Blake Watters
8be34582a5 Ported DiscussionBoard to new Three20 class structure 2011-06-11 19:31:21 -04:00
Blake Watters
f3c0995d5e Implementation of Object Mapping 2.0 design:
* Removed RestKit from inheritance hierarchy
  * Mappings are implemented as concrete classes
  * Mapper is much more flexible & powerful
  * Much more robust error handling
  * Serialization is reimplemented as an object mapping operation
  * Added ability to serialize to JSON natively
  * Reworked Core Data integration
  * Simplified the codebase substantially
2011-06-11 19:26:56 -04:00
Victor Kryukov
16ee0d278c Format lines better 2011-06-11 21:55:55 +04:00
Victor Kryukov
26e240d224 Customize view in loadView, not createModel 2011-06-11 21:55:31 +04:00
Victor Kryukov
71fb2d1a0c Remove unused _tableTitleHeaderLabel from DBResourceListTableViewController 2011-06-11 21:55:05 +04:00
Victor Kryukov
b25be71bab Use relative paths in #imports to prevent XCode 4.2 from complaining 2011-06-11 21:54:17 +04:00
Victor Kryukov
5db087a73a Remove duplicate declarations for createdAt, updatedAt, userID and user from DBPost
DBPost inherits from DBContentObject which has these accessors already defined.
2011-06-11 21:41:20 +04:00
Victor Kryukov
eca655abbd Add Three20.bundle to make sure TTAlert works 2011-06-11 14:47:41 +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
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
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
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
c486a623f3 re-enable refresh rate 2011-03-21 19:56:13 -04:00
Blake Watters
102180abce fix for breakage introduced during merge 2011-03-21 18:53:16 -04:00
Blake Watters
d359f0403a Updating gitignore workspaces 2011-03-09 15:14:48 -05:00
Jeremy Ellison
07cdf1f069 update projects to link libxml2 (verified working). Update readme to mention changes 2011-03-01 13:59:51 -05:00
Blake Watters
2c3b97a054 Added README file for the Discussion Board app. Normalized target name 2011-01-21 18:58:57 -05:00
Blake Watters
f1fae7d309 Add background image to the post controller 2011-01-21 18:30:28 -05:00
Blake Watters
5e9e9e47d7 Project changes 2011-01-21 18:23:37 -05:00
daniel
7952a9b577 Removed unused resources 2011-01-21 16:03:58 -05:00
daniel
6422ac57d6 Got rid of custom cell styling 2011-01-21 15:55:45 -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
8cef9936b3 Project build 2011-01-21 00:27:20 -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
1049d07755 Fixing build warning 2011-01-20 21:16:58 -05:00
Blake Watters
35df41ec25 Expanded comments and cleaned up more TODO's. Just a couple of bug fixes left in RestKit and styling work on this app! 2011-01-20 21:15:40 -05:00
Blake Watters
ebd23559bb Refactored models and cleaned up controllers pretty thoroughly. Moved to higher level abstractions for permissions and such 2011-01-20 20:52:33 -05:00
Jeremy Ellison
0ebfaf1299 Merge branch 'new-example' of github.com:twotoasters/RestKit into new-example 2011-01-20 11:50:02 -05:00
Jeremy Ellison
b20b78e57f Use delegate pattern for canceled login.
Move isNewRecord to model level.
Create rkcurl script.
2011-01-20 11:49:02 -05:00
Blake Watters
bf1cadc72e Implemented RKMakePathWithObject. Cleaned up some TODO's 2011-01-20 11:24:47 -05:00
Blake Watters
88943469d8 Moved some items around, knocking down todo's 2011-01-20 00:40:17 -05:00
Blake Watters
0272c93663 Added placeholder text to work around TT bug 2011-01-20 00:19:11 -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
Jeremy Ellison
723653585b remove todo for something I already fixed. 2011-01-19 14:08:01 -05:00
Jeremy Ellison
8021687bb6 constant view tags.
move header constant to environment.
move setting/clearing of user token header to user model.
2011-01-19 14:03:16 -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
7e2f49e814 Cleaned up Rails app somewhat to match changes in the iPhone client 2011-01-18 23:19:15 -05:00