init(creatingStorageAt:hardwareModel:options:)
Creates an initialized Mac auxiliary storage instance that describes a specific hardware model at a URL you specify.
Declaration
init(creatingStorageAt URL: URL, hardwareModel: VZMacHardwareModel, options: VZMacAuxiliaryStorage.InitializationOptions = []) throwsParameters
- URL:
The
URLto write the auxiliary storage to on the local file system. - hardwareModel:
The Vzmachardwaremodel model to use. The auxiliary storage can have different layouts for different hardware models.
- options:
Initialization options from the available Initializationoptions.
Mentioned in
Return Value
Returns a newly initialized VZMacAuxiliaryStorage object on success or nil if there was an error. On failure, error contains the NSError that describes reason for the failure.
Discussion
Use this method to create a new auxiliary storage object that describes a specific hardware model. To restore data from a previously saved existing auxiliary storage object, use init(contentsOfURL:).