COAttachmentID class documentationCOAttachmentID : NSObject <NSCopying>
Can appear as a value object inside a COItem.
- - (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
Returns the attachment hash.
See -initWithData: .