Contents

withoutImplicitSecurityScope

Prevents inclusion of a bookmark’s implicit ephemeral security scope, when creating one without security scope.

Declaration

static var withoutImplicitSecurityScope: NSURL.BookmarkCreationOptions { get }

Discussion

Bookmarks that you create without security scope automatically carry implicit ephemeral security scope. This security scope is valid until reboot at the latest, and confers access to the resource to any other process that resolves the bookmark. Using this option prevents inclusion of this ephemeral security scope.

When using this option, other processes can’t call startAccessingSecurityScopedResource() on the resolved URL. The option prevents providing unintended access to resources to other processes, and is also a performance optimization that reduces the size of the bookmark.

See Also

Options