Hey all basically I’m trying to save an array of custom objects, it saves fine but when I close the app and reopen it actually loads the saved array (into a table view) but freezes up and all I get is SIGKILL. How do I find what’s causing the issue?
This is the code I’m using to load the data if it helps:
NSFileManager *fileManager = [NSFileManager defaultManager];
if([fileManager fileExistsAtPath:dataFilePath]) {
// Load the array
NSMutableArray *arrayFromDisk = [NSKeyedUnarchiver
unarchiveObjectWithFile:dataFilePath];
[Data sharedData].listOfItems = arrayFromDisk;
NSLog(@"Loaded");
}
Setting the following breakpoints might help:
Check this thread for xCode 4
https://devforums.apple.com/thread/68421
on xCode 3
http://blog.emmerinc.be/index.php/2009/03/19/break-on-exception-in-xcode/
Hope this helps