Initializer

init(archivableObject:uniformTypeIdentifier:)

Creates an attachment from an object that conforms to NSSecureCoding, with a custom UTI.

Declaration

convenience init(archivableObject object: NSSecureCoding, uniformTypeIdentifier identifier: String)

Parameters

object

An encodable object that conforms to NSSecureCoding.

identifier

A custom UTI to represent the encoded data's type.

See Also

Creating Attachments from Objects

init(plistObject: Any)

Creates an attachment from an object that can be represented in an XML property list.

init(archivableObject: NSSecureCoding)

Creates an attachment from an object that conforms to NSSecureCoding.