Instance Method

startAccessingSecurityScopedResource()

Given a url created by resolving a bookmark data created with security scope, make the resource referenced by the url accessible to the process.

Declaration

func startAccessingSecurityScopedResource() -> Bool

Discussion

When access to the resource is no longer needed, call stopAccessingSecurityScopedResource(). Each call to startAccessingSecurityScopedResource() must be balanced with a call to stopAccessingSecurityScopedResource(). (Note: this is not reference counted).

See Also

Working with Security Scoped Resources

func stopAccessingSecurityScopedResource()

Revokes the access granted to the url by a prior successful call to the complementary start function.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software