Blake Watters
7fba450311
Fix crash under iOS 5.0.x due to attempt to use unavailable NSURLIsExcludedFromBackupKey symbol. fixes #1015
2012-10-29 10:47:13 -04:00
Blake Watters
6d487dbc9e
Add support for excluding the SQLite store file from iCloud Backups to conform with the iOS Data Storage Guidelines. closes #929
2012-10-29 01:22:50 -04:00
Blake Watters
c44f4010fa
Add support for specifying a configuration and customizing the options when adding a SQLite persistent store to the managed object store. closes #984
2012-10-29 00:32:56 -04:00
Blake Watters
235cfc2826
Remove dead whitespace
2012-10-01 17:35:35 -04:00
Blake Watters
c10321751c
Rename primaryManagedObjectContext to persistentStoreManagedObjectContext since nobody can keep its role straight
2012-09-30 22:47:26 -04:00
Arne Harren
bc7c65f03b
Switch to an embedded variant of LibComponentLogging with prefix RK
2012-09-27 21:47:36 +02:00
Blake Watters
29aa4f19a8
Remove import of NSBundle+RKAdditions.h
2012-09-24 18:26:10 -04:00
Blake Watters
9379875b95
Remove managed object store associated reference. This feels like an unnecessary API addition.
2012-09-12 16:31:16 -04:00
Blake Watters
709c3d324b
Drop category methods in favor of C functions for required functionality to reduce API size and avoids namespace conflicts
2012-09-11 16:48:18 -04:00
Blake Watters
0379806796
Setup a default managedObjectCache instance of RKFetchRequestManagedObjectCache
2012-09-10 12:41:57 -04:00
Jawwad Ahmad
8cbdb5f7ed
Trailing whitespace cleanup from files in the Code directory.
...
Used the following command from within the Code dir:
git ls-files *.m *.h *.json | xargs /usr/bin/sed -i '' -E 's/[[:space:]]*$//'
2012-09-02 12:51:45 -04:00
Jawwad Ahmad
c70ab49457
Delete @synthesize statements that are no longer needed. (Works with current 4.4.1 release of Xcode).
2012-09-02 12:28:45 -04:00
Blake Watters
a868d7fa2a
Delete deprecations from RKManagedObjectStore
2012-08-28 17:37:21 -04:00
Blake Watters
ce6b0829e4
Convert RestKit to ARC
2012-08-28 17:34:58 -04:00
Blake Watters
37c70e4c27
Migrate path utilities to C functions instead of encapsulating into static methods on RKDirectory to reduce API size
2012-08-14 09:57:27 -04:00
Blake Watters
6cc54fae9f
Fix crashes during test suite execution due to delay during processing of NSManagedObjectContextDidSaveNotification
2012-08-07 16:59:19 -04:00
Blake Watters
232b3eb861
Implemented new search engine for managed objects.
2012-08-01 18:12:53 -04:00
Blake Watters
07aadeebdf
Reimplemented the managed object store, converted managed object seeder to importer, cleaned up test breakage.
2012-07-26 17:33:35 -04:00
Blake Watters
093a76e7b2
Migrated to a single entity cache for the primary MOC instead of one per thread
2012-07-20 15:41:47 -04:00
Blake Watters
6b315fbd54
Updates to entity cache and other components to operate in parent/child context world.
2012-07-20 14:48:09 -04:00
Blake Watters
e952f451fb
Eliminated the use of the ActiveRecord pattern across the library.
2012-07-20 14:48:09 -04:00
Blake Watters
6af38b8b6d
Obtain permanent object ID's for managed objects before sending via RKManagedObjectLoader
2012-07-17 16:26:21 -04:00
Blake Watters
b25a1833b3
Ported RestKit to using managed object contexts with concurrency types. Numerous cleanups and API updates.
2012-07-16 22:47:06 -04:00
Blake Watters
cfa0df1841
Breakthrough on parent/child MOC setup
2012-07-13 14:11:48 -04:00
Blake Watters
f0706dbdbf
Work in progress
...
Conflicts:
Code/CoreData/RKManagedObjectLoader.h
Code/CoreData/RKManagedObjectLoader.m
Code/CoreData/RKManagedObjectMapping.m
Code/CoreData/RKManagedObjectMappingOperation.m
Code/CoreData/RKManagedObjectStore.m
Code/CoreData/RKManagedObjectThreadSafeInvocation.h
Code/CoreData/RKManagedObjectThreadSafeInvocation.m
Code/CoreData/RKSearchableManagedObject.m
Code/ObjectMapping/RKObjectLoader.m
Code/ObjectMapping/RKObjectMapper.h
Code/ObjectMapping/RKObjectMappingOperation.m
RestKit.xcodeproj/project.pbxproj
Tests/Logic/CoreData/RKManagedObjectThreadSafeInvocationTest.m
2012-07-13 13:07:42 -04:00
Blake Watters
c4a329cc58
Use dispatch_sync instead of NSOperation for merging changes from background notification
2012-07-11 16:47:33 -04:00
Blake Watters
ec6cdd1356
Migrate performSelectorOnMainThread and performSelectorInBackground invocations to GCD
2012-07-11 16:45:08 -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
f585d34f91
Ensure creation of Application Data directory when initializing Managed Object Store. fixes #657
2012-05-19 16:29:01 -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
5a53fdbf1e
Added test coverage for creation of duplicate objects. refs #661
2012-04-30 20:31:28 -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
dd852d90c3
Fix broken build from merge of 0.10.0
2012-04-06 00:03:35 -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
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
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
6efa73fa25
Fixed issues with accessing RestKitResources.bundle from within unit tests
2012-03-15 16:44:01 -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
Blake Watters
88ab404ea1
Load the Core Data momd from RestKitResources.bundle
2012-03-09 17:48:51 -05:00