Commit Graph

806 Commits

Author SHA1 Message Date
Blake Watters
67d5cf08c1 Log the name of the entity during failure to connect relationships 2012-04-03 23:39:42 -04:00
Blake Watters
212c243203 Added rootKeyPath option to RKMappingTest 2012-04-03 23:39:42 -04:00
Blake Watters
8aedbeb1a5 Added helper methods for deleting managed object stores 2012-04-03 23:39:42 -04:00
Blake Watters
a545c3942b Integrated primaryKey extension to NSEntityDescription and refactored cache strategy
classes to eliminate issues with duplicated objects. closes #611, #612, #613, #618

* NSEntityDescription is now aware of the primaryKeyAttribute. Can be configured via
Interface Builder within Xcode or programatically.
* Added findByPrimaryKey: interface to the Core Data extensions.
* Relaxed dependencies on RKManagedObjectMapping across the system now that primaryKey is
available without a reference to the mapping.
2012-04-03 23:39:42 -04:00
Blake Watters
1b324ccc80 Temporary workaround for duplicated objects caused by RKInMemoryMappingCache. refs #612
There are some issues with the current implementation of the RKInMemoryMappingCache that
are allowing the creation of duplicated objects. This commit switches the default cacheStrategy
to RKFetchRequestMappingCache. The primary key branch (#613) contains architecture
improvements that allow for a robust fix to the issues in the memory based cache.
2012-03-31 16:44:35 -04:00
Blake Watters
170060549f Fix exception for Core Data could not fulfill a fault within RKInMemoryEntityCache. fixes #611, refs #618 2012-03-30 22:37:10 -04:00
Blake Watters
73fe4f1237 Added support for object mapping a single object instance onto an NSOrderedSet collection. fixes #616 2012-03-30 09:29:41 -04:00
John Stallings
e07ea7910b Ensure RKManagedObjectLoader invokes onDidFailWithError as well as the delegate callback. refs #624 2012-03-30 09:01:11 -04:00
Bob Spryn
8fc0d9e46c Added test and fix for empty date @"" being set to a very strange date by the ISO date formatter". refs #622 2012-03-29 20:12:50 -04:00
Blake Watters
f4f3f44e17 Remove UDTableView. fixes #591 2012-03-29 20:04:12 -04:00
Blake Watters
ee3a5b7470 Update comments to remove reference to sharedFactory 2012-03-21 22:30:57 -04:00
Blake Watters
a6b3d46c4b Instantiate the sharedFactory via the static initialize method 2012-03-21 12:49:09 -04:00
Brian Morton
b4cdf80cf2 Set RKObjectPaginator's objectLoader according to if an objectStore has been configured. 2012-03-20 19:40:31 -07:00
Blake Watters
bc82f5a1ac Integrated support and test coverage for mapping relationships onto NSOrderedSet values. closes #578 2012-03-20 22:14:31 -04:00
Blake Watters
368f5bf11a Fix issue with incorrect quoting within the mapping cache causing duplicated objects. closes #598. refs #578 2012-03-20 21:11:29 -04:00
Blake Watters
175a90cabe Reorder logging statement so that logging occurs before sending of request to avoid sending message to a zombie instance. fixes #600 2012-03-20 20:43:14 -04:00
Blake Watters
0d709dbc07 Migrate dangling invocations of NSLog -> RKLog. refs #578 2012-03-20 20:43:14 -04:00
Blake Watters
b0ab880868 Fixed bug raising exception when loaderForObject: is invoked with a method of RKRequestMethodInvalid. fixes #601 2012-03-19 16:03:25 -04:00
Blake Watters
868372272f Ported RestKit tests over to using the RKTestFactory and completed documentation. fixes #318 2012-03-15 23:06:49 -04:00
Blake Watters
a84f52376a Merge pull request #595 from cfis/ObjectStoreRelease
Missing Release For Object store
2012-03-15 14:45:36 -07:00
Blake Watters
a740a9ce3b Drop RestKitCoreData.momd from the resources bundle. It is not currently viable to load the entities because you cannot reference entities in one model from another within Xcode. 2012-03-15 17:28:53 -04:00
Blake Watters
7ff874652e Fix typo 2012-03-15 17:27:55 -04:00
Blake Watters
6efa73fa25 Fixed issues with accessing RestKitResources.bundle from within unit tests 2012-03-15 16:44:01 -04:00
Blake Watters
f8df25edd8 Documentation tweaks 2012-03-15 15:46:35 -04:00
Jawwad Ahmad
3f29ccd42b Added a new cellMappingForReuseIdentifier convenience method to RKTableViewCellMapping 2012-03-15 12:38:06 -04:00
Blake Watters
9732ffa257 Appledoc update for RKParser 2012-03-15 00:21:03 -04:00
Blake Watters
450f31d3b3 Documentation for RKOrderedDictionary 2012-03-15 00:21:03 -04:00
Blake Watters
d63b3d4752 Documentation for RKSearchEngine 2012-03-15 00:21:03 -04:00
Jawwad Ahmad
0c16af2889 Added back predicateForSearchWithText:searchMode: and added documentation 2012-03-14 19:30:03 -04:00
Blake Watters
57183b364f Fix for warning emitted due to elimination of findOrCreateInstanceOfEntity:. Search Word functionality restored. closes #584
* Updates to the Core Data layer such that NSManagedObjectContexts now have a reference to the managed object store
they belong to.
* NSManagedObject instances can now return the managed object store they belong to.
* Relaxed the coupling to the sharedManager present within the RKSearchableManagedObject class.
* Expanded documentation of RKSearchableManagedObject
2012-03-14 17:08:02 -04:00
Brian Morton
80103bb6b3 Change test for allowing newly added date formatters priority so that it uses the updated fixture and reversable favoriteDate. Rearrange order of defaultDateFormatters to match their order before changing defaultDateFormatters to being prepended. 2012-03-13 09:43:37 -07:00
Brian Morton
10e3c17483 Merge pull request #577 from spenrose/date-formatter
Added default date formatter to start of NSArray
2012-03-13 09:24:20 -07:00
Blake Watters
c3b2ef164b Add conditional compilation for the Pull to Refresh trigger 2012-03-13 09:50:05 -04:00
Charlie Savage
0f8424f316 Release retained objectStore property when a RKManagedObjectLoader is deallocated. 2012-03-13 00:02:33 -06:00
Blake Watters
1bd3bfd514 Fix retain cycle issue with queued relationship connection. fixes #588 2012-03-12 20:42:52 -04:00
Blake Watters
5ffeee38d4 Ensure serializationMIMEType is configured when initializing object loaders via loaderWithURL: or loaderWithResourcePath: fixes #567 2012-03-12 20:34:31 -04:00
Blake Watters
896de8f1eb Respect modified values set for properties within key-value validation callbacks. fixes #565 2012-03-12 20:22:11 -04:00
Blake Watters
749c6e389f Fix retain cycle causing leak for backgroundPolicy RKRequestBackgroundPolicyContinue. closes #548 2012-03-12 18:50:33 -04:00
Blake Watters
0448090504 Disabled invalid caching behavior for PUT & POST responses. fixes #589 2012-03-12 18:33:35 -04:00
Blake Watters
f865eb9421 Merge pull request #590 from cfis/NSOrderedSet
NSOrderedSet and iOS 4.x Compatability (Again)
2012-03-12 10:26:17 -07:00
Brian Morton
cf98c5ac16 Merge pull request #587 from cfis/connectRelationshipContext
connectRelationship Using Incorrect ManagedObjectContext
2012-03-11 14:05:54 -07:00
Charlie Savage
08e65ac108 Remove references to NSOrderedSet to maintain iOS 4.x compatability. 2012-03-11 14:48:56 -06:00
Jawwad Ahmad
612f74e6c0 Made NSAssert statements in RKTestFixture more specific.
- Also updated fixtureBundle to be accessed through the getter
2012-03-09 18:49:31 -05:00
Blake Watters
88ab404ea1 Load the Core Data momd from RestKitResources.bundle 2012-03-09 17:48:51 -05:00
Blake Watters
eeecff7bd0 Added support for loading resolution independent images ([UIImage imageWithContentsOfFile:] is broken) via UIImage
category and updated NSBundle additions to leverage the support.
2012-03-09 17:48:50 -05:00
Blake Watters
5ae94287e9 Added NSBundle helpers to Support.h. Introduced convenience method for retrieving reference to RestKitResources.bundle 2012-03-09 17:48:50 -05:00
Greg Combs
28989c5440 Reworked pull-to-refresh to use gestures
Gesture recognizers clean up some of the view hierarchy related to pull-to-refresh.  This replaces EGOPullToRefresh
2012-03-09 17:48:38 -05:00
Jawwad Ahmad
d5690e4b20 Added nil check for sourceObject and mapping in RKMappingTest. refs #318 2012-03-09 13:21:53 -05:00
Jawwad Ahmad
89fef19b94 Add nil check for fixture bundle in RKTestFixture 2012-03-09 12:10:44 -05:00
Blake Watters
39d2311860 Added support for immediate verification of expectations. Expanded header documentation. refs #318 2012-03-09 09:04:24 -05:00