Initializes a data object with the data from the location specified by a given URL.
Mac Catalyst 13.0+Beta
The URL from which to read data
Use this method to convert data:// URLs to NSData objects. You can also use it to read short files synchronously. If you need to read potentially large files, initialize an NSInputStream with inputStreamWithURL:, then read the file incrementally.
This initializer may fail and return nil for various reasons, like bad URLs and file-not-found errors. If you want to handle these errors, use initWithContentsOfURL:options:error: instead.
Creates a data object from the mapped file at a given path.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.