Newbie questions (potentially)
I wish to use the Mail Composer class to send both a property list (which I believe is ASCII XML) and a small SQLlite database from my iPhone to my email account. The method I'm using is [mailComposerObject addAttachmentData:(NSData *)attachment mimeType:(NSString *)mimeType fileName:(NSString *)filename]
For the plist: I'm using mimeType of @"Text/xml". Because a plist is not of NSData type, I have tried creating and sending NSData created using the NSPropertyLixtXMLFormat format of the NSPropertyListSerialization method. But I seem to only get partial information about the xml version, encoding and the file, etc but not data. If I just load an NSData object from the plist file and send it, I get weird ASCII data kind of like using the UNIX strings command on an executable. What is the approach that I should use?
How do I go from a property list (an array of dictionary objects) in ASCII xml to a legal and ASCII version that I can email? mimeType?
For the SQL: I can't find a mimeType or method? What am I supposed to do?
Thanks