Contents

init(url:readOnly:)

Creates the attachment object from the specified disk image.

Declaration

init(url: URL, readOnly: Bool) throws

Parameters

  • url:

    A URL that points to a local disk image in RAW format.

  • readOnly:

    A Boolean that indicates whether to configure the disk image as read-only. Specify True to prevent the guest operating system from writing to the disk image, and False to allow writing.

Return Value

In Swift the methods returns an attachment object; in Objective-C the methods returns an attachment object on success, or nil if an error occurred

See Also

Creating the attachment point