[quote='856443022, DTS Engineer, /thread/797469?answerId=856443022#856443022']
No, I'm talking about "withoutImplicitStartAccessing". We explicitly say it does not apply to security-scoped bookmarks:
[/quote]
"This option causes an implicit call to startAccessingSecurityScopedResource() on the returned URL when it’s ready to use the resource."
The way this is written makes it sound like there will be a call to startAccessingSecurityScopedResource somewhere, so that a subsequent pair of explicit startAccessingSecurityScopedResource and stopAccessingSecurityScopedResource will still leave access at 1, leaking kernel resources.
It his not the case? Is this consistent across macOS and iOS?
"This option isn’t applicable to security-scoped bookmarks."
The documentation phrasing isn't clear about whether it's talking about NSURLBookmarkResolutionWithSecurityScope specifically (which is only available on macOS), or if it also applies to iOS (where all bookmarks are security scoped AFAIU from your earlier messages). Can you clarify this point?
I think a lot of the confusion in this area is that there are differences between how macOS and iOS behaves, and differences in which APIs are available, and for people like me who's trying to write cross platform code, and account for any differences, we need to know those subtle differences to account for them, to give a consistent behavior out to our users.
A clear guide that incorporates both OSes would be very much appreciated 🙌🏻
(e.g. https://developer.apple.com/documentation/security/accessing-files-from-the-macos-app-sandbox is great, but is specifically about macOS)