<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Core Data: Importing Data</title>
	<atom:link href="http://www.mac-developer-network.com/columns/coredata/may2009/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mac-developer-network.com/columns/coredata/may2009/</link>
	<description></description>
	<lastBuildDate>Sun, 14 Mar 2010 14:10:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Hwee-Boon Yar</title>
		<link>http://www.mac-developer-network.com/columns/coredata/may2009/comment-page-1/#comment-1675</link>
		<dc:creator>Hwee-Boon Yar</dc:creator>
		<pubDate>Fri, 18 Dec 2009 05:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mac-developer-network.com/?p=1846#comment-1675</guid>
		<description>You probably meant:

NSAssert([NSThread isMainThread], @&quot;Not on the main thread&quot;);

instead of:

NSAssert([NSThread mainThread], @&quot;Not on the main thread&quot;);</description>
		<content:encoded><![CDATA[<p>You probably meant:</p>
<p>NSAssert([NSThread isMainThread], @&#8221;Not on the main thread&#8221;);</p>
<p>instead of:</p>
<p>NSAssert([NSThread mainThread], @&#8221;Not on the main thread&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bala Paranj</title>
		<link>http://www.mac-developer-network.com/columns/coredata/may2009/comment-page-1/#comment-777</link>
		<dc:creator>Bala Paranj</dc:creator>
		<pubDate>Tue, 07 Jul 2009 07:27:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mac-developer-network.com/?p=1846#comment-777</guid>
		<description>That does not answer my question: How can do a one-time import of that data?</description>
		<content:encoded><![CDATA[<p>That does not answer my question: How can do a one-time import of that data?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michele Longhi</title>
		<link>http://www.mac-developer-network.com/columns/coredata/may2009/comment-page-1/#comment-742</link>
		<dc:creator>Michele Longhi</dc:creator>
		<pubDate>Tue, 23 Jun 2009 11:35:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.mac-developer-network.com/?p=1846#comment-742</guid>
		<description>Please forgive me: I wrote &quot;marcus&quot; instead of &quot;Marcus&quot;.
Best regards - Michele</description>
		<content:encoded><![CDATA[<p>Please forgive me: I wrote &#8220;marcus&#8221; instead of &#8220;Marcus&#8221;.<br />
Best regards &#8211; Michele</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michele Longhi</title>
		<link>http://www.mac-developer-network.com/columns/coredata/may2009/comment-page-1/#comment-741</link>
		<dc:creator>Michele Longhi</dc:creator>
		<pubDate>Tue, 23 Jun 2009 11:28:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.mac-developer-network.com/?p=1846#comment-741</guid>
		<description>Hi marcus

I just applied what I learned from your great article in a core data document-based application.
If the document (NSPersistentDocument) has been saved prior to call the import thread, everything work flawlessly. The problem arises with new documents: no stores are present into the coordinator, therefore calling the save method inside the working thread throws an exception. I tried to add an in-memory store to the NSPersistentStoreCoordinato and the changes are merged into the NSManagedObjectContext of the main thread, but nothing is saved with the document.
Any hint?</description>
		<content:encoded><![CDATA[<p>Hi marcus</p>
<p>I just applied what I learned from your great article in a core data document-based application.<br />
If the document (NSPersistentDocument) has been saved prior to call the import thread, everything work flawlessly. The problem arises with new documents: no stores are present into the coordinator, therefore calling the save method inside the working thread throws an exception. I tried to add an in-memory store to the NSPersistentStoreCoordinato and the changes are merged into the NSManagedObjectContext of the main thread, but nothing is saved with the document.<br />
Any hint?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satyam</title>
		<link>http://www.mac-developer-network.com/columns/coredata/may2009/comment-page-1/#comment-729</link>
		<dc:creator>Satyam</dc:creator>
		<pubDate>Sun, 21 Jun 2009 10:54:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.mac-developer-network.com/?p=1846#comment-729</guid>
		<description>Bala, All the data will be stored in xml format by default. If you see your code, in the class &quot;....AppDelegate.m&quot; there will be a method &quot;- (NSPersistentStoreCoordinator *) persistentStoreCoordinator &quot;.  You can see the name of &quot;.xml file. It will be saved in the folder &quot;/Users//Library/Application Support//.xml&quot;

Default format of data will be xml. You can also configure it to work with SQLLite.
If you want to use SQLLite, change the following in above said method:

url = [NSURL fileURLWithPath: [applicationSupportFolder
                   stringByAppendingPathComponent: @&quot;.demodoc&quot;]];

and

if ([coordinator addPersistentStoreWithType: NSSQLiteStoreType
                              configuration: nil
                                        URL: url
                                    options: nil
                                      error: &amp;error])

Similarly you can use binary store also.
(Didn&#039;t use any html tags, so might need some formatting)</description>
		<content:encoded><![CDATA[<p>Bala, All the data will be stored in xml format by default. If you see your code, in the class &#8220;&#8230;.AppDelegate.m&#8221; there will be a method &#8220;- (NSPersistentStoreCoordinator *) persistentStoreCoordinator &#8220;.  You can see the name of &#8220;.xml file. It will be saved in the folder &#8220;/Users//Library/Application Support//.xml&#8221;</p>
<p>Default format of data will be xml. You can also configure it to work with SQLLite.<br />
If you want to use SQLLite, change the following in above said method:</p>
<p>url = [NSURL fileURLWithPath: [applicationSupportFolder<br />
                   stringByAppendingPathComponent: @".demodoc"]];</p>
<p>and</p>
<p>if ([coordinator addPersistentStoreWithType: NSSQLiteStoreType<br />
                              configuration: nil<br />
                                        URL: url<br />
                                    options: nil<br />
                                      error: &amp;error])</p>
<p>Similarly you can use binary store also.<br />
(Didn&#8217;t use any html tags, so might need some formatting)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
