Sets the URL’s resource property for a given key to a given value.
- iOS 4.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The value for the resource property defined by
The name of one of the URL’s resource properties.
The error that occurred if the resource value could not be set.
YES if the resource property named
key is successfully set to
This method synchronously writes the new resource value out to disk. Attempts to set a read-only resource property or to set a resource property that is not supported by the resource are ignored and are not considered errors.
If an error occurs, this method returns
NO and populates the object pointer referenced by
error with additional information.