nsmanagedobjectcontext Questions
3
Solved
There is a similar question in stack overflow already but it doesn't work for me.
There is a use case in my application where I have to observe the database changes to perform some operation. To r...
Synecious asked 1/7, 2019 at 13:22
2
I would really like to avoid using NSManagedObjectID as a way to connect my model structs to their CoreData objects. I mean something like this:
Say I have a Book entity in CoreData and then I have...
Curtsy asked 2/4, 2020 at 11:33
12
Solved
I am creating a framework that allows me to use Core Data. In the framework's test target, I have configured a data model named MockModel.xcdatamodeld. It contains a single entity named MockManaged...
Nies asked 15/8, 2018 at 0:44
3
I'm having a wired problem with core data. With Swift3 in iOS 10 I get the managed object context each time I am fetching or storing data with
func getContext () -> NSManagedObjectContext {
l...
Vladivostok asked 14/11, 2016 at 21:18
5
Solved
I have what I assume is a fairly standard setup, with one scratchpad MOC which is never saved (containing a bunch of objects downloaded from the web) and another permanent MOC which persists object...
Wailoo asked 8/6, 2010 at 15:10
2
Solved
I've read the following Behavior differences between performBlock: and performBlockAndWait:?
But wasn't able to find an answer to my question.
The following code is picked up from an RayWenderlic...
Blancheblanchette asked 31/12, 2018 at 20:32
3
Solved
As pointed out in another question on SO (and the Apple docs), NSManagedObject instances do not hold a strong reference to the NSManagedObjectContext from which they originated. On first blush, thi...
Heartwarming asked 15/5, 2014 at 19:35
1
I am have an entity in core data and I try to update it from two different context. I am storing managedObjectID of my managed object which I need to update as it is thread safe. Before updating my...
Twirl asked 15/9, 2016 at 9:52
1
I'm reading Delete/Reset all entries in Core Data?.
If I follow the steps below, I get an unexpected result:
Call the code below
Then query an entity in the simulator, I will get an entity bac...
Switchboard asked 17/12, 2018 at 21:15
4
In my application, I have a NSFetchedResultsController to load Core Data objects in a UITableView.
The fetch request associated with this FRC uses the new viewContext property available for the NSP...
Elanaeland asked 6/9, 2016 at 12:10
4
I am trying use CoreData, but when I add it to my project I only get two new methods :
- (NSPersistentContainer *)persistentContainer
and
- (void)saveContext
Now I can't get old methods to w...
Odetteodeum asked 8/12, 2016 at 13:5
2
Solved
I'm trying to efficiently batch delete a lot of NSManagedObjects (without using an NSBatchDeleteRequest). I have been following the general procedure in this answer (adapted to Swift), by batching ...
Bronwen asked 1/3, 2018 at 22:36
3
Solved
I have a large import task I need to do with core data.
Let say my core data model look like this:
Car
----
identifier
type
I fetch a list of car info JSON from my server and then I want to sy...
Measures asked 9/7, 2014 at 15:13
1
Solved
My situation is: I have a multi-threaded app with core-data database, managing multiple contexts. In my context Hieratchy I have a Root Saving Context, and child contexts where I fetch data and mak...
Janinajanine asked 28/3, 2017 at 15:6
0
I have a pair of Core Data Entities of One-to-Many relationship.
Department <-(optional) (delete rule: Cascade) (optional)->> Item
Item <-(optional) (delete rule: Nullify) (optional)-...
Pageboy asked 8/3, 2017 at 15:53
3
I have been trying to figure out this problem for 2 days now. I keep getting an error when I try to save.
//self.data is NSManagedObject. kAppDelegate.moc is the managed object context.
self.data ...
Violetavioletta asked 25/7, 2014 at 22:28
1
Some users of mine are encountering a CoreData error when performing a save. I haven't been able to find any information online about this error or how to symbolicate the stack trace.
The error me...
Tees asked 8/8, 2016 at 15:2
3
Solved
I have a NSManagedObjectContext in which I have a number of subclasses of NSManagedObjects such that some are containers for others. What I'd like to do is watch a top-level object to be notified o...
Ctn asked 17/3, 2010 at 16:19
3
Solved
We have been trying to debug a Core Data multiple-context/threading issue wherein merging a Core Data save notification into our main thread NSManagedObjectContext is sporadically crashing the app....
Sharlasharleen asked 14/1, 2015 at 22:33
0
Okay so I am experiencing a frustrating issue that I would love some help or advice with. Basically I have an app that I'm developing that utilizes Core Data to store numerous user properties. What...
Livre asked 2/6, 2016 at 21:37
3
Solved
I get the following error:
'NSInvalidArgumentException', reason:
'Illegal attempt to establish a
relationship 'condition' between
objects in different contexts
when running my iphone app. ...
Linnet asked 17/8, 2010 at 17:7
2
I am using a Private Managed Object Context to create some new objects into the persistent store, then after saving the private MOC, merging them into the main MOC using mergeChangesFromContextDidS...
Vasquez asked 1/3, 2016 at 21:2
3
Solved
I have a fetchedResultsController with a predicate, where "isOpen == YES"
When calling for closeCurrentClockSet, I set that property to NO. Therefore, it should no longer appear on my tableView.
...
Outlandish asked 11/9, 2012 at 13:11
2
Solved
I have two managed object contexts that share the same persistent store coordinator:
One with NSMainQueueConcurrencyType for the main thread and
One that's NSPrivateQueueConcurrencyType for doin...
Compulsion asked 19/2, 2015 at 16:46
2
Solved
I am trying to implement CoreData in ios Application,Now I want to Fetch all records from Entity MUSTHAFA
My NSManagedObjectedSubClass is MUSTAHFA
MUSTHAFA.m
#import <Foundation/Foundation...
Southward asked 24/4, 2012 at 12:10
1 Next >
© 2022 - 2024 — McMap. All rights reserved.