COAttachmentID class documentation
COAttachmentID : NSObject <NSCopying>Reference to an attachment, composed of the hash of the referenced attachment.
| Authors | Generated by qmathe |
|---|---|
| Declared in | COAttachmentID.h |
Overview
Can appear as a value object inside a COItem.
Default
- - (instancetype) initWithData: (NSData *)aData
Initializes and returns an attachmend ID based on the given hash.
You should almost always use -[COSSQLiteStore importAttachmentFromURL:] to get an attachment ID, and let the store import the original attachment.
The hash represents the attachment in a unique way. For example, you can pass a hash generated from the attachment content.
- - (NSData *) dataValue