nsmanagedobjectcontext Questions
1
When I attempt to save the context of my CoreData model, I receive an error
Unresolved error Error Domain=NSCocoaErrorDomain Code=1560 "The operation couldn’t be completed. (Cocoa error 1560.)" U...
Deforest asked 24/1, 2012 at 20:0
2
I am learning about CoreData. Obviously, one of the main classes you entouer is NSManagedObjectContext. I am unclear about the exact role of this. From the articles i've read, it seems that you can...
Laurenalaurence asked 9/1, 2012 at 15:55
1
Is it possible to refresh a particular relationship of a Core Data managed object? I know I can refresh the entire object but I would just like to refresh a particular relationship. I imagine I wou...
Amphibious asked 12/12, 2011 at 22:50
2
Solved
The documentation says:
- (void)reset
Returns the receiver to its base state.
Discussion
All the receiver's managed objects are “forgotten.” If you use this method, you should ensure that you als...
Chaperon asked 30/11, 2011 at 1:7
3
Is it possible to find out which properties were saved on a managed object after the save occurs? For example, I have someone listening for managed object context saves, (NSManagedObjectContextDidS...
Paolapaolina asked 18/11, 2011 at 0:23
1
Solved
I have an array of NSManagedObjectID. Is there a more efficient way to fetch the associated managed objects either than looping through the array and getting them individually?
Dusa asked 20/11, 2011 at 21:32
1
Solved
I created an iOS project and a managed object model (Model.xcdatamodeld) with one entity. In application:didFinishLaunchingWithOptions: I want to test if the managed object model exists, however I ...
Varela asked 10/11, 2011 at 7:18
2
Solved
I would like to be notified whenever an entity of a certain type is added (and maybe changed/removed).
I read it is possible by adding an observer to the managedObjectContext. However, I haven't ...
Otilia asked 1/9, 2011 at 21:57
1
I have an Mac Application using a NSPersistentDocument. I want to get notified when Objects are deleted to save this information using Core Data. So I'm listening for NSManagedObjectContextObjectsD...
Bathometer asked 12/10, 2011 at 15:13
2
I want to determine how many times a particular method is called on NSManagedObject.
What are anybody's suggestions for the best way of doing this?
Bearing in mind that i have 30+ managed objects...
Lais asked 11/10, 2011 at 12:55
1
Solved
I have an NSFetchedResultsController and a few operations that inserts and updates managed objects on separate threads via NSOperationQueue.
The FRC looks like this, note that I have set the cache...
Hygrophilous asked 7/10, 2011 at 2:42
2
My program does work like link below:
Update results of NSFetchedResultsController without a new fetch
show result of NSFetchedResultsController to UITableView
get new object from web service an...
Landan asked 2/9, 2011 at 8:17
1
Solved
My Cocoa/Application has a Managed Object Context on the main thread.
When I need to update my data my program will:
Start a new thread
Receive new data from a server
Create a new Managed Object...
Brach asked 5/8, 2011 at 16:3
4
Solved
Just curious why ManagedObjectContexts should be passed to UIViewControllers when they are created, rather than just grabbing them from a UIApplicationDelegate?
The docs say that this makes your a...
Imphal asked 31/7, 2011 at 4:12
1
I understand that Core Data is not thread safe and that NSManagedObjectContext and NSManagedObjects associated with a context cannot be passed from thread to thread.
Question:
However, if I have ...
Resection asked 7/7, 2011 at 17:9
2
Solved
I have two managed object contexts, A and B. These two contexts are kept in sync by merging changes from one to the other whenever they're saved (by monitoring NSManagedObjectContextDidSaveNotifica...
Diplomatist asked 1/6, 2011 at 6:52
1
I have a memory-intensive iOS app and I'm working on making sure that memory usage does not build up over time. My app has a "main" context that lives for the lifetime of the app, with other smalle...
Benzo asked 21/6, 2011 at 20:44
1
Solved
I have a main NSManagedObjectContext that's created in the appDelegate.
Now, I'm using another NSManagedObjectContext for editing/adding new objects without affecting the main NSManagedObjectConte...
Funny asked 27/5, 2011 at 14:39
1
Solved
//set up notifications
[[NSNotificationCenter defaultCenter]
addObserver:self
selector:@selector(dataChanged:)
name:NSManagedObjectContextDidSaveNotification
object:context];
//later
- (vo...
Gerger asked 12/5, 2011 at 10:11
3
Solved
I need to delete my persistent store (doing it object by object is not practical because I have over 100,000 objects). I've tried this:
- (IBAction)resetDatabase:(id)sender {
NSPersistentStore* ...
Recover asked 23/4, 2011 at 1:2
1
Solved
I am having trouble with an NSManagedObject not reflecting the changes made to a persistent store after a background thread has saved it's context.
The Setup
In a simple test application I have a...
Chloramine asked 25/3, 2011 at 20:23
3
Solved
I am using core data in my iPhone app. I have created a simple class Friend, which derives from NSManagedObject and which uses the following property:
@property (nonatomic, retain) NSString *name;...
Barta asked 25/7, 2010 at 11:47
5
I'm working on some code that uses an NSOperation to import data. I'd like for the user to be able to undo the NSManagedObject instances that are created during the import operation.
From what I c...
Dragrope asked 9/2, 2011 at 2:23
1
Solved
Ey guys, I have seen this question and have used
self.managedObjectContent= [NSManagedObjectModel mergedModelFromBundles:nil];
in my code, however, I would like to be able to print a filepath v...
Gomorrah asked 5/1, 2011 at 2:24
1
Solved
From inside NSManagedObjectContext -save: I am getting this message:
Assertion failed: (_Unwind_SjLj_Resume() can't return), function _Unwind_SjLj_Resume, file /SourceCache/libunwind/libunwind-2...
Khalid asked 22/12, 2010 at 2:30
© 2022 - 2024 — McMap. All rights reserved.