nsmanagedobjectcontext Questions
2
I have created two context like this:
// create writer MOC
_privateWriterContext = [[NSManagedObjectContext alloc] initWithConcurrencyType:NSPrivateQueueConcurrencyType];
[_privateWriterContext set...
Haematoblast asked 3/5, 2015 at 16:13
2
Solved
This topic has been discussed at many forum, but I am still not able to fully understand how performBlockAndWait actually works. As per my understanding, context.performBlockAndWait(block: () ->...
Markova asked 2/1, 2016 at 7:29
2
Solved
There are quite a few subjects on this already, but I have yet to find a solution that is workable for Swift (Xcode 6.2).
To test Core Data backed classes in Swift, I generate new Managed Object ...
Abdominous asked 14/4, 2015 at 0:25
5
Solved
I am having the same issue described at this address http://www.cocoabuilder.com/archive/cocoa/288659-iphone-nsmanagedobjectcontext-save-doesn-crash-but-breaks-on-objc-exception-throw.html
I am de...
Morey asked 10/8, 2011 at 8:7
2
Solved
I was working through Core Data Stack in Swift - Demystified but when I got to the line
self.context = NSManagedObjectContext()
I got the warning
`init()` was deprecated in iOS 9.0: Use -initWi...
Barbarity asked 18/8, 2015 at 5:37
1
I'm creating an NSManagedObjectContext in a private queue to handle data updates I take from files and/or services:
NSManagedObjectContext *privateContext = [[NSManagedObjectContext alloc] initWit...
Acidulous asked 25/8, 2015 at 8:6
1
I was looking for posts regarding to this, but I don't fully understand... What is the difference between:
[context reset];
and:
for (NSManagedObjectID *objId in objectIds) {
[context deleteOb...
Perjure asked 25/8, 2015 at 9:8
2
Solved
I've recently been learning about Core Data and specifically how to do inserts with a large number of objects. After learning how to do this and solving a memory leak problem that I met, I wrote th...
Tut asked 17/8, 2015 at 4:6
1
Solved
Before I send my app to the App Store I like to check it for memory leaks and other fishy stuff with instruments. There is one Core Data issue that I can't seem to solve, so I've decided to create ...
Cytotaxonomy asked 4/8, 2015 at 9:35
4
I'm doing some background processing in an app with core data. The background processing is done on a child managedObjectContext. Context initialization:
appDelegate = UIApplication.sharedApplicat...
Foreordain asked 27/4, 2015 at 15:41
2
I have an entity in my "ProjName.xcdatamodel" with the name "Questions". In this entity I have 5 attributes ("icehockey","volleyball","soccer",...), each with type transformable. Each row (attribut...
Smukler asked 12/6, 2015 at 7:56
1
Solved
I am really confused by the following paragraph straight from the NSManagedObjectContext documentation:
Setter methods on queue-based managed object contexts are thread-safe.
You can invoke the...
Amoebocyte asked 16/6, 2015 at 18:54
1
Solved
I am slightly confused about parent/child contexts for ManagedObjectContext.
When I setup a child context and set the parent context, does the child context contain all the objects of the parent c...
Jejunum asked 6/5, 2015 at 23:29
3
Solved
I have an app with two managed object contexts setup like this:
Parent Context: NSPrivateQueueConcurrencyType, linked to the persistent store.
Main Context: NSMainQueueConcurrencyType, child of P...
Kellie asked 16/8, 2012 at 15:10
7
Solved
I have a problem that is almost identical to the problem described by this person here, but it hasn't get answered:
http://www.cocoabuilder.com/archive/cocoa/312683-core-data-nested-managed-object...
Seagraves asked 2/8, 2012 at 21:59
3
Solved
I'm banging my head against the wall here, I'm using Core Data for a SQLLite DB, and I am able to successfully save to the database (I've checked the contents in an offline SQLLite browser), but af...
Stinkwood asked 27/2, 2014 at 1:22
2
I have two NSManagedObjectContexts named importContext and childContext. childContextis the child of importContextand both of them are NSPrivateQueueConcurrencyType.
To keep things off the main th...
Soldo asked 27/9, 2014 at 0:29
0
I'm trying to figure out how to solve the following situation
There's a main thread NSManagedObjectContext with NSMainQueueConcurrencyType. It spawns several background threads giving them the NS...
Benthamism asked 27/11, 2014 at 14:3
3
I created an UserModel.xcdatamodeld with one Entry: UserBase, and I added an attribute which name is UserID and type is Integer 32.
After that, I create classes for it with file->new file->NSManag...
Jibheaded asked 2/12, 2011 at 16:28
2
Solved
In a managed object i have stored a path to an image file in the application's container.
When the managed object get’s deleted, the image file should be moved to trash. This should be done as late...
Jillene asked 1/9, 2014 at 9:56
1
Solved
What I'm trying to do: Get an NSFetchedResultsController to work for the first time to connect a UITableView to Core Data. I'm a newbie and really inexperienced, and I've followed Ray Wenderlich's ...
Aboard asked 5/8, 2014 at 12:19
2
Solved
I have a nice working iphone app that works with core data. I use a NSFetchedResultsController/NSManagedObjectContext as described in various tutorials.
Now I want to extends my app and add some m...
Fibrinogen asked 9/10, 2010 at 22:54
1
Is there a way to remove a single managed object which has already been inserted into a context but not yet saved? I want to remove a single object, not rollback the whole context. I've tried calli...
Chrystalchryste asked 2/7, 2014 at 18:15
1
This question might look like it's been asked many times before, but I'm not sure I've aggregated the answer correctly. So here goes.
ObjectIDs are described by Apple (WWDC 2012 Session 214) as co...
Ineptitude asked 18/1, 2013 at 6:39
2
Solved
I get the following error when saving managedObjectContext:
Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '-[Image count]: unrecognized selector sent to instance...
Abirritate asked 17/12, 2013 at 12:45
© 2022 - 2024 — McMap. All rights reserved.