Sets the value of the specified default key to the specified URL.
- iOS 4.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The URL to store in the defaults database.
The key with which to associate the value.
url is a file URL, this method takes the
absolute, determines whether its path can be made relative to the user’s home directory, and if so, abbreviates it using the
url isn’t a file URL, a data object is created by calling the
archived method and passing
url as the root object.