Bookmark Data Creation Options

Options used when creating bookmark data.

Overview

When creating a bookmark, use bitwise OR operators to combine the options you want to specify, and provide them to the options parameter of the CFURLCreateBookmarkData method.

Version-Notes

Security-scoped bookmarks are not available in versions of macOS prior to OS X v10.7.3.

Topics

Constants

kCFURLBookmarkCreationPreferFileIDResolutionMask

Specifies that an alias created with the bookmark data prefers resolving with its embedded file ID.

Deprecated
kCFURLBookmarkCreationMinimalBookmarkMask

Specifies that an alias created with the bookmark data be created with minimal information, which may make it smaller but still able to resolve in certain ways.

kCFURLBookmarkCreationSuitableForBookmarkFile

Specifies that the bookmark data include properties required to create Finder alias files.

kCFURLBookmarkCreationWithSecurityScope

Specifies that you want to create a security-scoped bookmark that, when resolved, provides a security-scoped URL allowing read/write access to a file-system resource; for use in an app that adopts App Sandbox.

kCFURLBookmarkCreationSecurityScopeAllowOnlyReadAccess

When combined with the kCFURLBookmarkCreationWithSecurityScope option, specifies that you want to create a security-scoped bookmark that, when resolved, provides a security-scoped URL allowing read-only access to a file-system resource; for use in an app that adopts App Sandbox.

See Also

Bookmark Data Constants

Bookmark Data Resolution Options

Options used when resolving bookmark data.