Sets the access control list associated with a
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
CFFileobject to modify.
The access control list to set, or kCFFileSecurityRemoveACL to indicate that the access control list should be removed from a file, or
NULLto unset the access control list property in the object.
true if the access control list was successfully set, or
To remove the access control list from a file system object, pass kCFFileSecurityRemoveACL as the
access parameter. Then, call
CFURLSet to set
k to the resulting
NULL unsets the ACL property of the
CFFile object. By doing this, the access control list of the file will be unchanged if you subsequently use this object to set permissions on an actual file system object.