| 207 | } |
| 208 | |
| 209 | Attachment * Attachment::attachmentWithText(String * text) |
| 210 | { |
| 211 | Data * data; |
| 212 | Attachment * attachment; |
| 213 | |
| 214 | attachment = new Attachment(); |
| 215 | attachment->setInlineAttachment(true); |
| 216 | attachment->setMimeType(MCSTR("text/plain")); |
| 217 | data = text->dataUsingEncoding("utf-8"); |
| 218 | attachment->setData(data); |
| 219 | |
| 220 | return (Attachment *) attachment->autorelease(); |
| 221 | } |
| 222 | |
| 223 | void Attachment::init() |
| 224 | { |
nothing calls this directly
no test coverage detected