NSDictionary loading a NSURL with URLByResolvingBookmarkData <p>I'm trying right now the Bookmark Data solution and I retraive a NSURL but it doen't work.The NSURL is correctly formatted but when i use it to create a dictionary or a string these are nil. The code I'm using is this:</p> <pre><code>- (NSData *)bookmarkFromURL:(NSURL *)url { NSError *error = nil; NSData *bookmark = [url bookmarkDataWithOptions:NSURLBookmarkCreationWithSecurityScope includingResourceValuesForKeys:NULL relativeToURL:NULL error:&amp;error]; if (error) { NSLog(@"Error creating bookmark for URL (%@): %@", url, error); [NSApp presentError:error]; } return bookmark; } - (NSURL *)urlFromBookmark:(NSData *)bookmark { NSURL *url = [NSURL URLByResolvingBookmarkData:bookmark options:NSURLBookmarkResolutionWithSecurityScope relativeToURL:NULL bookmarkDataIsStale:NO error:NULL]; return url; } </code></pre>