I want to maintain a list of folders, in a sandboxed Mac app. To do that, I need to make a security-scoped bookmark, using url.bookmarkData()
.
Is it guaranteed that the Data
returned by this method is always the same byte pattern, for a given file URL?
That is, can I take a new url.bookmarkData()
and test if a [Data]
list contains a security-scoped bookmark for the same URL, by just checking the Data instances? Or do I need to resolve each Data
into a URL
and compare those?