Sorry but i can't understand how this work. In documentation write, create an app-scoped bookmark for that folder, ok, im tryNSURL *openPanelFileURL = [NSURL URLWithString:[urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];NSError *error = nil; BOOL bookmarkDataIsStale;NSData *bookmarkData = nil;bookmarkData = [openPanelFileURL bookmarkDataWithOptions:NSURLBookmarkCreationWithSecurityScope includingResourceValuesForKeys:nil relativeToURL:nil error:&error];if (error) { NSLog(@Error creating bookmark for URL (%@): %@, urlString, error); [NSApp presentError:error];but see error in terminalError creating bookmark for URL (/Users/username/Desktop/test/): Error Domain=NSCocoaErrorDomain Code=262 Scoped bookmarks can only be made with file URLs UserInfo={NSURL=/Users/username/Desktop/test/, NSDebugDescription=Scoped bookmarks can only be made with file URLs}Your need create app-scoped for folder, but your can't create app-scoped for folder ??? ***???What wrong?
Topic:
Code Signing
SubTopic:
General
Tags: