3

I have this code:

[metaDoc openWithCompletionHandler:^(BOOL success) {
    if (!success) {
        NSLog(@"UH OH");
    }
}];

Why would this ever return NO? For me it's returning NO even though in my

- (BOOL)loadFromContents:(id)contents 
                  ofType:(NSString *)typeName 
                   error:(NSError **)outError 

method, I am always returning YES.

Thanks

0xSina
  • 20,973
  • 34
  • 136
  • 253

1 Answers1

5

There are lots of reasons. Override handleError:userInteractionPermitted: and either log the details, or set a breakpoint there. You should see the exact error.

Jody Hagins
  • 27,943
  • 6
  • 58
  • 87