Created
October 5, 2012 16:20
-
-
Save mikeabdullah/3840793 to your computer and use it in GitHub Desktop.
Bookmark data error-handling fails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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