Commit Graph

159 Commits

Author SHA1 Message Date
Blake Watters
1edaaa5eb2 Restore inadvertently removed release of fetch request. refs #661 2012-04-24 09:36:13 -04:00
Blake Watters
8262e596c1 Fix issue with duplication of objects when JSON/XML contains a string primary key value and the model
expects a number when the Fetch Request based managed object cache is in use. refs #661
2012-04-23 22:26:35 -04:00
Blake Watters
4b394f8c1e Prevent creation of duplicate managed objects due to notifications from the MOC failing to be posted often enough. refs #661 2012-04-23 00:15:08 -04:00
Blake Watters
9c6316cb45 Merge pull request #673 from timmehmainframe/patch-1
delegate would always be nil for managedObjectStore:didFailToCopySeedDat...
2012-04-17 23:53:43 -04:00
Blake Watters
e70bd93158 Recreate the MOC after deletion of persistent store using a seed database. fixes #676 2012-04-17 23:50:28 -04:00
Ed McManus
0df8c7ea73 Fix spelling of persistent store. 2012-04-14 11:48:22 -07:00
Aaron Crespo
22225cf8a0 Fixed Static analysis warnings. 2012-04-11 22:44:58 -04:00
Blake Watters
0d80bc3744 Switch default cacheStrategy to RKFetchRequestManagedObjectCache. closes #660 2012-04-10 15:16:28 -04:00
Blake Watters
b27be1cbc5 Invoke self instead of self.delegate in thread safe invocation from managed object loader. refs #655 2012-04-10 11:33:36 -04:00
Blake Watters
b9d72ce7fc Fixed invalid spelling RKManagedObjectCacheing -> RKManagedObjectCaching. Updated filenames to match. 2012-04-09 17:38:22 -04:00
Blake Watters
b18abc04ed Fix broken build from merge of 0.10.0 2012-04-06 00:04:20 -04:00
Blake Watters
a8483ca643 Merge branch 'release/0.10.0' into development 2012-04-04 20:19:43 -04:00
Blake Watters
457a6126cf Refresh copyright notices for all source files 2012-04-04 09:08:54 -04:00
Blake Watters
61aefd5eda Restore default cache strategy to In Memory Cache 2012-04-04 08:20:21 -04:00
Blake Watters
d943d9b932 Ensure In Memory Cache is scoped to the target managed object context 2012-04-04 08:17:23 -04:00
Blake Watters
9cffb75174 Add Objective-C Category fix to mapping provider core data extensions
and add source file to OS X build target.
2012-04-03 23:39:55 -04:00
Blake Watters
73f7bf88a2 Ensure that managed object mapping instances fail to initialize if they target
a managedObjectClass that is not part of the project (i.e. source files are missing).
2012-04-03 23:39:43 -04:00
Blake Watters
ddf2cb1a79 Added support for connecting relationships where the destination entity does not have an inherited
managedObjectClass. refs #627 [AWAITING TESTS]
2012-04-03 23:39:42 -04:00
Blake Watters
67d5cf08c1 Log the name of the entity during failure to connect relationships 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
947694deb1 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:38:34 -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
John Stallings
e07ea7910b Ensure RKManagedObjectLoader invokes onDidFailWithError as well as the delegate callback. refs #624 2012-03-30 09:01:11 -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
0d709dbc07 Migrate dangling invocations of NSLog -> RKLog. refs #578 2012-03-20 20:43:14 -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
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
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
Brian Morton
cf98c5ac16 Merge pull request #587 from cfis/connectRelationshipContext
connectRelationship Using Incorrect ManagedObjectContext
2012-03-11 14:05:54 -07:00
Blake Watters
88ab404ea1 Load the Core Data momd from RestKitResources.bundle 2012-03-09 17:48:51 -05:00
Blake Watters
1c59f5fc1e Cleaned up the naming on RKManagedObjectStore to primaryManagedObjectContext and managedObjectContextForCurrentThread 2012-03-09 09:02:21 -05:00
Charlie Savage
0337689343 Make sure that ConnectRelationship is using the correct managed object context. Currently it assumes the default managedObjectContext, but that is not correct when multiple databases are open using different managedObjectContexts. 2012-03-07 23:35:16 -07:00
Blake Watters
53bbeca099 Clean up build issues on OS X 2012-02-25 12:07:06 -05:00
Blake Watters
2040283e9e Add RKManagedObjectMappingCache.h to Public/ headers and add RKObjectMappingProvider+CoreData.h to CoreData.h 2012-02-23 22:50:17 -05:00
Jeff Arena
32ab17fe0b Incorporate code review feedback 2012-02-23 22:39:27 -05:00
Jeff Arena
1cd22d5b33 First pass at replacing RKManagedObjectCache with a more flexible block approach that leverages the new resource path pattern matching approach to registering objectMappings. 2012-02-23 22:30:08 -05:00
Blake Watters
6c4461956f Recreate the retained MOC reference on store deletion 2012-02-23 20:49:59 -05:00
Blake Watters
5b655f1a23 Decoupled managed object contexts from the sharedManager instance. Various minor cleanups in CD. 2012-02-23 15:25:41 -05:00
Blake Watters
e904394b6b Miscellaneous cleanups 2012-02-17 16:34:03 -05:00
Blake Watters
4d48ef4729 Fixed breakage in OS X support 2012-02-15 17:48:59 -05:00
Blake Watters
789b0b99eb Implemented support for hydrating to-many relationships. closes #284 2012-02-15 11:09:21 -05:00
Blake Watters
4142ffdb42 Reorganization and cleanups of Unit Tests
* Reorganized tests to accommodate split into Logic & Application.
* Eliminated 'Spec' naming in favor of 'Test' as the suite is entirely based on SenTest.
* Pulled majority of testing support classes up into the library and documented them.
* Introduced RKApplicationTests app for running the RKTableController UI tests
2012-02-10 17:32:23 -05:00