Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Bookmark data error-handling fails
NSError *error;
NSURL *url = [NSURL URLByResolvingBookmarkData:data
options:NSURLBookmarkResolutionWithSecurityScope
relativeToURL:baseURL
bookmarkDataIsStale:NULL
error:&error];
NSError *error;
NSData *bookmark = [url bookmarkDataWithOptions:NSURLBookmarkCreationWithSecurityScope
includingResourceValuesForKeys:nil
relativeToURL:baseURL
error:&error];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment