Hello MR,
After leaving the Cocoa scene for web dev, I've decided to return and learn Cocoa once and for all (and it's working this time). Unfortunately I've found myself at a stand-still once again.
I created a new Core Data application in hopes of it doing most of the work for me when saving information. It's been great so far. However, I've found that the application will only save what's in the Core Data database if called with an action through Interface Builder. I'm unable to call the add: method through my implementation file and have it save contents of the database into a file. It will add objects to the array fine, but will not save its contents, even when they are clearly present in my table view.
Is this an issue of delegates or something?
Thanks
After leaving the Cocoa scene for web dev, I've decided to return and learn Cocoa once and for all (and it's working this time). Unfortunately I've found myself at a stand-still once again.
I created a new Core Data application in hopes of it doing most of the work for me when saving information. It's been great so far. However, I've found that the application will only save what's in the Core Data database if called with an action through Interface Builder. I'm unable to call the add: method through my implementation file and have it save contents of the database into a file. It will add objects to the array fine, but will not save its contents, even when they are clearly present in my table view.
Code:
NSMutableDictionary *Item = [[NSMutableDictionary alloc] init];
[Item setValue:@"AttributeFor1" forKey:@"Attribute1"];
[Item setValue:@"AttributeFor2" forKey:@"Attribute2"];
[Item setValue:@"AttributeFor3" forKey:@"Attribute3"];
[myArrayController addObject:Item];
Is this an issue of delegates or something?
Thanks