views:

10

answers:

0

I am running my code in iphone simulator and I put the program in into background use the iPhone simulator menu hardware > simulate memory warning then call the program back to foreground and this code

if (![fetchedResultsController performFetch:&error]) {
        NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
        abort();
    }

produces

Unresolved error (null), (null)

according to the Documentation if a method that takes (NSError **)error returns "NO" error will be an object.

From Doc

Cocoa methods that indirectly return error objects in the Cocoa error domain are guaranteed to return such objects if the method indicates failure by directly returning nil or NO,

So is my code wrong? is there some other way to find out what the error is?

Cheers, Grant

Edit: Found my error fetchedResultsController is NULL after the memory warning.