Core Data export and mail in Xcode

I created an App that uses core data and I want to export the core data into a form that can be mailed and/or synced on a later version of this app. Can you please let me know 1- which form (XML, CSV, PDF...etc) is the best to export to from core date? 2- I need to send file via mail from the App itself so keep this in mind Appreciate if you could divert me to youtube tutorial or Stackoverflow question where I can find code for what I need. Thanks in advance for the help

Answers


I was looking for the exact same thing. I am exporting my data to XML using this code: https://github.com/skjolber/xswi/blob/wiki/SerializingObjectsToXML.md

If you export each of your entities in Xcode (Click your Data Model and then click Editor > Create NSManagedObject Subclass) you can add the code to each of the subclasses.

From there you should be able to create an XML file with all your data.


Need Your Help

Controlling shell command line wildcard expansion in C or C++

c++ shell command-line unix wildcard

I'm writing a program, foo, in C++. It's typically invoked on the command line like this:

List with datamodel won't get bound to json object

c# jquery json asp.net-mvc-3 post

I've had this problem before and I've never solved it in a good way.