Boy do I feel stupid. Here is a programming 101 question that I just can't figure out.
BOOL MOMisCompatible = [self.objectModel isConfiguration:nil compatibleWithStoreMetadata:existingPersistentStoreMetadata];
NSLog(@"%d", (unsigned)MOMisCompatible); // A
if(MOMisCompatible){
NSLog(@"The MOM is compatible."); // B
}
else{
NSLog(@"ARGH! The MOM is incompatible."); // C
}
The NSLog outputs 1 or 0 at A as expected. But neither B nor C outputs anything. I debug by putting a breakpoint at A, but the code never drops into A nor B. What am I missing?