Returns the URL associated with the specified key.
- iOS 4.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A key in the current user’s defaults database.
The URL associated with the specified key. If the key doesn’t exist, this method returns
This method retrieves the URL associated with a key with the following behavior:
If the value for the key is an NSData object, the data object is used as the argument to
unarchive. If the data object can be unarchived as an
Object With Data:
NSURL, the URL is returned. If the URL can’t be archived as an
If the value for this key is a file reference URL, the file reference URL is created, but its bookmark data isn’t resolved until the
NSURLobject is later used (for example, with
With Contents Of URL: