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.