Commit Graph

181 Commits

Author SHA1 Message Date
Blake Watters
af4c4f894b Kill the CLI example 2012-10-01 18:03:30 -04:00
Luke Hamilton
2f4c27b96a Fixed incorrect call for RKMappingResults objects 2012-09-28 14:32:38 +10:00
Stephan Diederich
ba2c327ac6 Twitter sample: in debug builds, build only active arch 2012-09-14 16:14:47 +02:00
Blake Watters
ba4301c43d Merge Twitter example code fixes from mdd; closes #927 2012-09-10 14:54:53 -04:00
Stephan Diederich
71c914632c xcode auto change 2012-09-09 19:51:26 +02:00
Stephan Diederich
48bf8d3ec0 sign the device version with a developer certificate
remove overwriting config from target setting
2012-09-09 19:51:26 +02:00
Jawwad Ahmad
285586a5b5 Some code formatting cleanup. 2012-09-02 13:15:14 -04:00
Blake Watters
9fa7a11fcf Update connection mapping signatures on RKEntityMapping to be more idiomatic 2012-08-15 16:35:54 -04:00
Blake Watters
3b686125b8 Fix references in Examples/ to eliminated RKDirectory class 2012-08-15 08:03:07 -04:00
Blake Watters
7bd47a7dac Add example application for Core Data search support 2012-08-14 09:57:28 -04:00
Blake Watters
99738db1cc Update examples projects to reflect Core Data API changes 2012-08-07 10:01:05 -04:00
Jawwad Ahmad
82f4630d36 Whitespace syntax cleanup. Refs #614 2012-07-11 10:41:38 -04:00
Jawwad Ahmad
abb46c382c Ensure the stars for all pointers belong to the variable rather than the type. Refs #614 2012-06-04 22:47:30 -04:00
Jawwad Ahmad
eaa5484b01 Placing opening braces on a new line for methods to match Apple convention. Refs #614
Used uncrustify's "nl_fdef_brace = add" option to detect issues.
2012-06-04 00:36:19 -04:00
Blake Watters
016f13dad0 Convert all tabs to four spaces. refs #743 2012-05-17 18:10:59 -04:00
Blake Watters
fcb973056b Cleanup trailing whitespace. refs #743 2012-05-17 18:00:16 -04:00
Blake Watters
0e5b36e356 Project file updates for OS X example 2012-05-17 08:34:51 -04:00
Blake Watters
fb58452595 Fix build issues with RKTwitterCoreData seeding target. fixes #670 2012-04-12 08:54:16 -04:00
Blake Watters
587fc73ca8 Update RKTwitterCoreData project 2012-04-04 20:15:15 -04:00
Blake Watters
dc7135399c Remove incomplete RKTableViewExample project. RKGithub is a much better resource. 2012-04-04 20:15:15 -04:00
Blake Watters
289f9d4a07 Update project configuration for RKMacOS X example 2012-04-04 20:14:41 -04:00
Blake Watters
e23123ae81 Add primaryKey connection of the assignedUser relationship to RKCatalog RKRelationshipMappingExample 2012-04-04 20:14:41 -04:00
Blake Watters
457a6126cf Refresh copyright notices for all source files 2012-04-04 09:08:54 -04:00
Brian Morton
54d9ee7c52 Update RKTwitter project settings as recommended by Xcode. 2012-03-22 09:13:32 -07:00
Brian Morton
075636c13b Manually apply fixes from zorn to fix the RKTwitter example's mapping when using Twitter's JSON feed. Closes #606. 2012-03-22 09:11:55 -07:00
Blake Watters
bbc6500026 Update RKCatalog project 2012-03-12 18:52:47 -04:00
Blake Watters
efd68c4f29 Updates for development branch API changes on RKCatalog example 2012-02-25 14:29:13 -05:00
Beat Besmer
75bc2ddd36 Fix CoreData example project
- Update "Header Search Path"
- Link against QuartzCore
- Use the new `mappingForClass: inManagedObjectStore:`
2012-02-25 14:22:09 -05:00
Blake Watters
6db4a0a170 Fix broken XML mapping in RKTwitter example. fixes #400 2012-02-25 14:16:09 -05:00
Brian Morton
b44c4974ee Fix RKTableViewExample.
* Add necessary frameworks and header configuration.
* Update calls to deprecated methods.
2012-02-20 23:52:09 -08:00
Greg Combs
60a1dfc86a Rudimentary cleanup on the table view example, just updating framework method names. 2012-02-10 16:30:55 -05:00
Blake Watters
3d0f0ab39e Introduced the RKTableController component for iOS.
RKTableController provides a flexible, integrated system for driving iOS table views using
the RestKit object mapping engine. Local domain objects can be mapped into table cells within a
collection or presented for editing as part of a form. There are three flavors of table controllers
available:

* Static Tables: RKTableController can be used to render simple static tables that are composed of RKTableItems
presented in RKTableSections. Table items can quickly be built and added to a table without a backing model
or can have content object mapped into them for presentation.
* Network Tables: RKTableController can also render a table with the results of a network load. The typical use
case here is to have RestKit retrieve a JSON/XML payload from your remote system and then render the content into
a table.
* Core Data Tables: RKFetchedResultsTableController can efficiently drive a table view using objects pulled from a
Core Data managed object context. Typical use-cases here are for the presentation of large collections that are
pulled from a remote system, offering offline access, or speeding up a UI by using Core Data as a fast local cache.

RKTableController supports a number of bells and whistles including integrated searching/filtering and pull to refresh.
2012-02-10 16:30:54 -05:00
Blake Watters
5bc1518cc5 Use URL mapping registration rather than directly providing an object mapping in RKKeyValueMappingExample 2012-01-20 10:21:57 -05:00
Blake Watters
7c5ad95816 Updated all example projects to reflect changes. 2012-01-20 10:21:19 -05:00
Blake Watters
9208101350 Migrated Three20 support and DiscussionBoard to standalone projects.
See https://github.com/RestKit/RKThree20 and https://github.com/RestKit/RKDiscussionBoard
2011-12-02 09:26:38 -05:00
Blake Watters
563f5e909b Updated all example projects to build against the new project. Cleaned up header imports for flattened project structure 2011-12-02 09:26:36 -05:00
Blake Watters
5b718890ac Checking in work in progress on the library reorganization 2011-12-02 09:26:35 -05:00
Blake Watters
d75fd7d0b0 Refactored RKReachabilityObserver to work around issues with iOS 5 + host reachability and expand its capabilities. closes #408
* Added support for monitoring by IP address or hostname as well as local Wifi and Internet access generally
* Eliminated usage of synchronous calls to obtain reachability flags during status checks
* Reworked SystemConfiguration reachability callback to cache flags
* RKClient now monitors Internet access instead of hostname based reachability by default. baseURLReachabilityObserver eliminated in favor of reachabilityObserver. It is now a retain property that can be customized
* Queue suspension is now tied to the reachability observer rather than baseURL mutation
2011-10-19 08:51:37 -04:00
Blake Watters
c45d3b2d33 Implemented example application building RestKit into a CLI utility for parsing files and evaluating keyPaths against the results. refs #409 2011-10-16 02:37:22 -04:00
Blake Watters
6084225df6 Minor example project refresh
* Fixed invalid use of dateFormatStrings in Twitter examples
* Cleared some deprecation warnings
* Reapplied header search paths to fix Code Sense issues
2011-10-05 23:14:44 -04:00
Blake Watters
2d281e60d3 Investigated issues surrounding inability to change HTTP AUTH credentials thoroughly. fixes #250, #237, #127
These issues has been open for some time. I have added thorough unit test coverage
for scenarios of mutating the HTTP AUTH credentials on the RKClient and on individual
RKRequest instances. Everything seems to work fine.

Also added RKAuthenticationExample to RKCatalog for testing. Needs to be updated with
support for using OAuth.
2011-09-27 23:59:06 -04:00
Blake Watters
4e7d6e674a Merge pull request #325 from allenwei/master
Can not update user's token if token changed at server side
2011-09-21 05:53:51 -07:00
Blake Watters
eb887e38c6 Refactored OAuth support for merge into master. fixes #84, #211
Cleaned up @rodchile's excellent work integration OAuth 1.0 and 2.0 into RestKit. Changes
are as follows:

* Introduced new RKRequestAuthenticationType to replace the forceBasicAuthentication and other
    methods for influencing how authorization works.
* Moved TDOAuth code into Vendor/
* Renamed authorization code flow classes and delegate methods for clarity.
2011-09-20 15:52:17 -04:00
Blake Watters
70c73f2981 Fixed issue with order dependence in Core Data connections. fixes #173
Since OM 2.0 connection of relationships happened during the object mapping operation
instead of aggregately at the end of the process. In this commit, we have introduced a lightweight
queue for deferring portions of the mapping operation until a larger aggregate mapping has completed.

The changes are as follows:
* Introduced RKMappingOperationQueue for queueing portions of mapping. This is a synchronous queue modeled off
of NSOperationQueue that does NOT use threading (for Core Data friendliness).
* RKObjectMappingOperation now has a RKMappingOperationQueue queue property that defaults to nil
* RKObjectMappingOperation instances built via RKObjectMapper will has a mapping operation queue
assigned to the property.
* If a queue is present, RKManagedObjectMappingOperation will use it to defer the connection of relationships.
* At the end of an RKObjectMapper process, the mapping operation queue used by all mapping operations created
during the process will be executed. This allows all relationships to be connected after all object creation
has completed.

The queue is general purpose, though currently only used for the connection of relationships.
2011-09-20 12:02:50 -04:00
Blake Watters
d9d0f7a650 Eliminated the global sharedQueue in favor of allowing each RKClient to own its a private queue. This eliminates problems where multiple clients are tracking reachability notifications and mutating the suspension state on a single queue. If you want to use a single queue across multiple RKClient instances, you can assign a single queue to both and worry about suspension and reachability yourself. fixes #278 2011-09-03 15:52:45 -04:00
allenwei
cadf91e4f2 fix issue: can not update user's token if token changed 2011-09-03 02:16:19 +08:00
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