Questions tagged [managedobjectcontext]

A managed object context represents a single object space, or scratch pad, in a Core Data application on iOS. It's primary responsibility is to manage a collection of managed objects.

An entity on the iOS platform.

A managed object context represents a single object space, or scratch pad, in a Core Data application. A managed object context is an instance of NSManagedObjectContext. Its primary responsibility is to manage a collection of managed objects. These managed objects represent an internally consistent view of one or more persistent stores. The context is a powerful object with a central role in the life-cycle of managed objects, with responsibilities from life-cycle management (including faulting) to validation, inverse relationship handling, and undo/redo.

Link.

48 questions
0
votes
0 answers

Core Data entityForName: nil is not a legal NSManagedObjectContext

I am struggline with adding data into core data and retrieving. It seems like this code should work but it is throwing an error seen in my title. I'm basically getting data from NSUserDefaults and trying to write that into my core…
mreynol
  • 309
  • 3
  • 17
0
votes
1 answer

How to read an object from managedObjectContext in Core Data ( Xcode )

I have a program that gets some numbers in a tableView . I have a Core Data based program that has an entity with some attributes and could bind the columns of the tableview to those attributes. Now I want to have the sum of each column , but…
-1
votes
1 answer

bind arrayControlle to NSViewControllerr in Document-based cocoa app cause the NSViewControllerr init(code :) called many times

I am develop a Document-based cocoa app use coredata,I bind NSViewController to NSArrayController like this : https://developer.apple.com/library/archive/qa/qa1871/_index.html , ,when I save some NSManagedObject in a document and then read data…
1 2 3
4