nsmanagedobjectcontext Questions

1

I want to implement a UI-responsive downloading and parsing of a large data set, saving it with Core Data. My setup: I display the downloaded content in a custom view controller. I don't use a NS...
Busty asked 15/1, 2013 at 15:7

3

Solved

My app sometimes inserts objects into the managed object context that are not meant to necessarily be saved. For example, when I launch an 'add entity' modal, I create a managed object and assign i...
Pearle asked 11/1, 2013 at 18:20

1

Solved

I'm debugging a random SIGTRAP crash right now that just happens in the background. It's probably something that has to do with an NSManagedObjectContext somewhere. Besides that, I'm trying to de...
Godoy asked 11/1, 2013 at 0:17

4

I'm relatively well versed in CoreData and have been using it for several years with little or no difficulty. For the life of me, I can't figure out why insertNewObjectForEntityForName:inManagedOb...

3

I'm working on a core data application that has a rather large hierarchy of managed objects similar to a tree. When a base object is created, it creates a few child objects which in turn create th...

2

Solved

The objective is to get the current NSManagedObjectContext in order to work with Core Data. In iOS 4.3 I set the UINavigationController's delegate to be the AppDelegate like so (in AppDelegate.m): ...
Margerymarget asked 17/10, 2011 at 21:12

2

Solved

In iOS 5, NSManagedObjectContext has a couple of new methods, performBlock: and performBlockAndWait:. What are these methods actually used for? What do they replace in older versions? What kind of ...
Oklahoma asked 29/3, 2012 at 8:59

2

Solved

I've got a doozey of a problem that I've been working on for a few weeks. It involves stuttering UI performance whenever I save my Core Data managed object context. I've gotten as far as I can on m...

2

Solved

I am mapping Json Data from Server using Restkit and I am Displaying those data by fetching from db. There is a refresh button in my view which performs the above operation again. Scenario: I ha...
Kalisz asked 24/10, 2012 at 9:21

1

Solved

I have one managedObjectContext with concurency type of NSMainQueueConcurrencyType + (NSManagedObjectContext *)managedObjectContextMainThread { static NSManagedObjectContext *__managedObjectConte...

2

Solved

I am writing a function that performs some CoreData stuff. I want the function to return only after all the CoreData operations have executed. The CoreData stuff involves creating an object in a ba...

2

Solved

I've seen a few videos / threads that say it's possible to create 'children' MOCs -- MOCs that use other MOCs as their persistant stores. Useful, for example, in a context where you're threading yo...
Inductee asked 4/9, 2012 at 21:15

2

Solved

I have a fairly complex data model with approximately 10 entities. Some need to be stored to disk and others just need to be available in memory when the application is running. Is it possible to a...
Nosh asked 22/3, 2011 at 23:2

2

Solved

Phew, sorry for the long title. I have a single Managed Object Context where I am storing songs derived from two different locations. I get some of the songs from the persistent storage on the pho...

1

Solved

In my app I have a "master" NSPrivateQueueConcurrencyType context which serves as a parent to a NSMainQueueConcurrencyType context that the view controller's rely on and pass around. I wanted to do...
Referent asked 3/8, 2012 at 18:40

2

Solved

I have an NSFetchedResultsController and a few operations updates managed objects on separate threads via NSOperationQueue. The FRC (with its predicate) looks like this: - (NSFetchedResultsContro...

4

I'm building my first iOS app, which in theory should be pretty straightforward but I'm having difficulty making it sufficiently bulletproof for me to feel confident submitting it to the App Store....
Crenelation asked 4/7, 2012 at 20:39

2

Solved

Is initializing a NSManagedObjectContext using NSMainQueueConcurrencyType only for the situation where that MOC has a child MOC that was initialized using NSPrivateQueueConcurrencyType? To give so...
Armrest asked 24/6, 2012 at 9:16

1

Solved

Question: How do I get my child context to see changes persisted on the parent context so that they trigger my NSFetchedResultsController to update the UI? Here's the setup: You've got an app tha...

1

Solved

When using NSPrivateQueueConcurrencyType and NSMainQueueConcurrencyType types for NSManagedObjectContext, is it safe to make nested performBlock calls on the same context ? [backgroundContext perf...
Andie asked 4/5, 2012 at 8:22

1

Solved

There are two entities: Author and Book. Author has an attribute authorName and a to-many relationships books. Book has several attributes and a relationship author. There is a view controller (VCA...

4

Solved

Possible Duplicate: Store But Don't Save NSManagedObject to CoreData? I need to make an NSManagedObject without saving it, how can I do this? The reason I want to do this is the ...
Mesothelium asked 15/4, 2012 at 22:10

2

Solved

I have a short setup process in my app and I create an NSManagedObject to store name and other details of an individual, however during this setup I don't want to save the object until the user pre...
Tiffanitiffanie asked 15/4, 2012 at 18:34

3

Literature seems a bit sparse at the moment about the new NSManagedObjectContext concurrency types. Aside from the WWDC 2011 vids and some other info I picked up along the way, I'm still having a h...
Quickie asked 11/3, 2012 at 18:37

2

Solved

I am writing my first comprehensive app using Core Data, and I want to see what the best way to keep track of various object changes / updates / deletes is. For example, I have a Notes entity and a...

© 2022 - 2024 — McMap. All rights reserved.