In an app that has adopted App Sandbox, makes the resource pointed to by a security-scoped URL available to the app.
- iOS 8.0+
- macOS 10.7+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The security-scoped URL that points to the file-system resource you want to access.
true if the request to access the resource succeeded; otherwise,
When you obtain a security-scoped URL, such as by resolving a security-scoped bookmark, you cannot immediately use the resource it points to. To make the resource available to your app, by way of adding its location to your app’s sandbox, call this function (or its Cocoa equivalent,
start) on the security-scoped URL.
Calls to the
CFURLStart function (or its Cocoa equivalent) are nestable on a per-process basis. This means that if your app calls the
start method on a URL twice, to fully relinquish access to the referenced resource you must call the corresponding
stop method twice.