<?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 and Plug-ins</title>
	<atom:link href="http://www.cimgf.com/2009/05/03/core-data-and-plug-ins/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cimgf.com/2009/05/03/core-data-and-plug-ins/</link>
	<description>Taglines are for Windows programmers</description>
	<lastBuildDate>Mon, 05 Dec 2011 10:55:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Marcus Zarra</title>
		<link>http://www.cimgf.com/2009/05/03/core-data-and-plug-ins/comment-page-1/#comment-1517</link>
		<dc:creator>Marcus Zarra</dc:creator>
		<pubDate>Sun, 05 Dec 2010 17:54:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=512#comment-1517</guid>
		<description>&lt;p&gt;If you are getting a version error like that then I would look close at your code and make sure that each plugin is creating its own store file on disk as opposed to modifying the base store used by the application.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>If you are getting a version error like that then I would look close at your code and make sure that each plugin is creating its own store file on disk as opposed to modifying the base store used by the application.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: ck</title>
		<link>http://www.cimgf.com/2009/05/03/core-data-and-plug-ins/comment-page-1/#comment-1516</link>
		<dc:creator>ck</dc:creator>
		<pubDate>Sat, 04 Dec 2010 20:54:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=512#comment-1516</guid>
		<description>&lt;p&gt;Thanks for your post … I still had some problems getting it to run. After making some changes to the code it seems to work now, though.&lt;/p&gt;

&lt;p&gt;I also added some code that creates some actual entities. Doing this I ran into some other problem that made me wonder if you know how to sort that.&lt;/p&gt;

&lt;p&gt;If I run the CDPlugins application the first time without the plugin and create a Person entity everything is fine and gets successfully saved to the store.&lt;/p&gt;

&lt;p&gt;Adding the plugin to the application support folder and launching the application again results in the following error message when trying to save a Widget entity to the store.&lt;/p&gt;

&lt;p&gt;&#039;The managed object model version used to open the persistent store is incompatible with the one that was used to create the persistent store.&#039;&lt;/p&gt;

&lt;p&gt;The updated source can be found at:
http://dl.dropbox.com/u/706599/CDPlugins.zip&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for your post … I still had some problems getting it to run. After making some changes to the code it seems to work now, though.</p>

<p>I also added some code that creates some actual entities. Doing this I ran into some other problem that made me wonder if you know how to sort that.</p>

<p>If I run the CDPlugins application the first time without the plugin and create a Person entity everything is fine and gets successfully saved to the store.</p>

<p>Adding the plugin to the application support folder and launching the application again results in the following error message when trying to save a Widget entity to the store.</p>

<p>&#8216;The managed object model version used to open the persistent store is incompatible with the one that was used to create the persistent store.&#8217;</p>

<p>The updated source can be found at:
<a href="http://dl.dropbox.com/u/706599/CDPlugins.zip" rel="nofollow">http://dl.dropbox.com/u/706599/CDPlugins.zip</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Gregory Hill</title>
		<link>http://www.cimgf.com/2009/05/03/core-data-and-plug-ins/comment-page-1/#comment-1485</link>
		<dc:creator>Gregory Hill</dc:creator>
		<pubDate>Thu, 14 Oct 2010 02:37:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=512#comment-1485</guid>
		<description>&lt;p&gt;Catching back up.  Thanks for the response.&lt;/p&gt;

&lt;p&gt;Now I&#039;m seeing what you&#039;re saying.  I&#039;ll have to experiment with this when I have some down-time.  I&#039;m going into beta-test mode with some folks, and I think now&#039;s not the time to be mucking around. :-)&lt;/p&gt;

&lt;p&gt;I&#039;ll let you know what comes of my travails.&lt;/p&gt;

&lt;p&gt;-g&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Catching back up.  Thanks for the response.</p>

<p>Now I&#8217;m seeing what you&#8217;re saying.  I&#8217;ll have to experiment with this when I have some down-time.  I&#8217;m going into beta-test mode with some folks, and I think now&#8217;s not the time to be mucking around. :-)</p>

<p>I&#8217;ll let you know what comes of my travails.</p>

<p>-g</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus Zarra</title>
		<link>http://www.cimgf.com/2009/05/03/core-data-and-plug-ins/comment-page-1/#comment-1484</link>
		<dc:creator>Marcus Zarra</dc:creator>
		<pubDate>Mon, 11 Oct 2010 14:04:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=512#comment-1484</guid>
		<description>&lt;p&gt;Just share it as in include it in both projects.  Multiple Xcode projects can link to the same file(s) and use them.  So in your case you can reference the same model from both projects and whenever you change the model, both projects can see it.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Just share it as in include it in both projects.  Multiple Xcode projects can link to the same file(s) and use them.  So in your case you can reference the same model from both projects and whenever you change the model, both projects can see it.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Gregory Hill</title>
		<link>http://www.cimgf.com/2009/05/03/core-data-and-plug-ins/comment-page-1/#comment-1483</link>
		<dc:creator>Gregory Hill</dc:creator>
		<pubDate>Mon, 11 Oct 2010 02:50:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=512#comment-1483</guid>
		<description>&lt;p&gt;Okay.  You&#039;re using English words, but I&#039;m still not quite following. :-)&lt;/p&gt;

&lt;p&gt;When you say &quot;just share it&quot; with respect to models between two projects, I&#039;m not sure I understand what that means or how to do it.  How does this work?&lt;/p&gt;

&lt;p&gt;Sorry for the neophyte-like questions.  I&#039;m good at some stuff, but I&#039;m just not quite groking what you&#039;re saying.&lt;/p&gt;

&lt;p&gt;In the meantime, I&#039;ll try Google for a thousand dollars.... ;-)  Maybe I&#039;ll get a burst of enlightenment.&lt;/p&gt;

&lt;p&gt;-greg&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Okay.  You&#8217;re using English words, but I&#8217;m still not quite following. :-)</p>

<p>When you say &#8220;just share it&#8221; with respect to models between two projects, I&#8217;m not sure I understand what that means or how to do it.  How does this work?</p>

<p>Sorry for the neophyte-like questions.  I&#8217;m good at some stuff, but I&#8217;m just not quite groking what you&#8217;re saying.</p>

<p>In the meantime, I&#8217;ll try Google for a thousand dollars&#8230;. ;-)  Maybe I&#8217;ll get a burst of enlightenment.</p>

<p>-greg</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus Zarra</title>
		<link>http://www.cimgf.com/2009/05/03/core-data-and-plug-ins/comment-page-1/#comment-1482</link>
		<dc:creator>Marcus Zarra</dc:creator>
		<pubDate>Sun, 10 Oct 2010 15:09:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=512#comment-1482</guid>
		<description>&lt;p&gt;First, you can&#039;t really have plug-ins on iOS as you are not allowed to download and run code.&lt;/p&gt;

&lt;p&gt;Second, this article was designed for the desktop.&lt;/p&gt;

&lt;p&gt;Third, if you need to share a model between two projects, just share it.  Multiple Xcode projects can reference the same file with no ill effect.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>First, you can&#8217;t really have plug-ins on iOS as you are not allowed to download and run code.</p>

<p>Second, this article was designed for the desktop.</p>

<p>Third, if you need to share a model between two projects, just share it.  Multiple Xcode projects can reference the same file with no ill effect.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Gregory Hill</title>
		<link>http://www.cimgf.com/2009/05/03/core-data-and-plug-ins/comment-page-1/#comment-1481</link>
		<dc:creator>Gregory Hill</dc:creator>
		<pubDate>Thu, 07 Oct 2010 19:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=512#comment-1481</guid>
		<description>&lt;p&gt;K.  I&#039;m not getting this to work.  I built the example, then created the &quot;CDPlugins&quot; folder under &quot;Application Support&quot; (I&#039;m assuming I needed to do that, because it wasn&#039;t there).  I then first dropped the ExamplePlugin folder into that folder, and then just put the files in the CDPlugins folder.&lt;/p&gt;

&lt;p&gt;Neither way produced the expected results.&lt;/p&gt;

&lt;p&gt;Any ideas?  I really want to get this to work, as this technique will save me an enormous amount of potential heart-ache.  I&#039;ve got a huge CD data model, and need to use it in two different apps.  If I can get this to work, then I don&#039;t have to keep copying changes over from one to the other!&lt;/p&gt;

&lt;p&gt;Also.  I&#039;m thinking this through, and I don&#039;t quite see how this will work for Cocoa Touch apps.  Am I supposed to drop the plugin into one of the sub-folders under &quot;iPhone Simulator&quot;?&lt;/p&gt;

&lt;p&gt;Sorry if I&#039;m being dense about this.  I&#039;m definitely in new territory, here.&lt;/p&gt;

&lt;p&gt;-greg&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>K.  I&#8217;m not getting this to work.  I built the example, then created the &#8220;CDPlugins&#8221; folder under &#8220;Application Support&#8221; (I&#8217;m assuming I needed to do that, because it wasn&#8217;t there).  I then first dropped the ExamplePlugin folder into that folder, and then just put the files in the CDPlugins folder.</p>

<p>Neither way produced the expected results.</p>

<p>Any ideas?  I really want to get this to work, as this technique will save me an enormous amount of potential heart-ache.  I&#8217;ve got a huge CD data model, and need to use it in two different apps.  If I can get this to work, then I don&#8217;t have to keep copying changes over from one to the other!</p>

<p>Also.  I&#8217;m thinking this through, and I don&#8217;t quite see how this will work for Cocoa Touch apps.  Am I supposed to drop the plugin into one of the sub-folders under &#8220;iPhone Simulator&#8221;?</p>

<p>Sorry if I&#8217;m being dense about this.  I&#8217;m definitely in new territory, here.</p>

<p>-greg</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus Zarra</title>
		<link>http://www.cimgf.com/2009/05/03/core-data-and-plug-ins/comment-page-1/#comment-1472</link>
		<dc:creator>Marcus Zarra</dc:creator>
		<pubDate>Fri, 01 Oct 2010 22:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=512#comment-1472</guid>
		<description>&lt;p&gt;While I do not have any other articles on plug-ins, they are fairly well documented by Apple.  A plug-in can be a static library, game data, or really anything.  In the design I discuss above they are static libraries but that is definitely not a requirement.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>While I do not have any other articles on plug-ins, they are fairly well documented by Apple.  A plug-in can be a static library, game data, or really anything.  In the design I discuss above they are static libraries but that is definitely not a requirement.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Gregory Hill</title>
		<link>http://www.cimgf.com/2009/05/03/core-data-and-plug-ins/comment-page-1/#comment-1471</link>
		<dc:creator>Gregory Hill</dc:creator>
		<pubDate>Fri, 01 Oct 2010 18:56:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=512#comment-1471</guid>
		<description>&lt;p&gt;Markus, I think you&#039;ve answered a prayer of mine.  Thanks so much for this post.&lt;/p&gt;

&lt;p&gt;Do you have any posts/articles that dig further into plugins themselves?  In briefly reading through this, it looks like you &lt;i&gt;might&lt;/i&gt; be talking about static frameworks, but I haven&#039;t read closely enough to be sure.  If you have any more detailed discussions (or can point me towards someone who does), I&#039;d love a link.&lt;/p&gt;

&lt;p&gt;Quick aside--I live in the Baltimore area, and there&#039;s an Airline (AirTran?) that is running a series of commercials related to the Baltimore Ravens.  One of them features a rather ... &lt;i&gt;intense&lt;/i&gt; ... individual who knows trivia down to the minute detail on his fantasy football players.  His friend suggests he needs a girlfriend.  He responds (maybe a slight paraphrase):  &quot;Fantasy football &lt;i&gt;is&lt;/i&gt; my girlfriend.&quot;&lt;/p&gt;

&lt;p&gt;Thought you&#039;d appreciate it. ;-)&lt;/p&gt;

&lt;p&gt;-greg&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Markus, I think you&#8217;ve answered a prayer of mine.  Thanks so much for this post.</p>

<p>Do you have any posts/articles that dig further into plugins themselves?  In briefly reading through this, it looks like you <i>might</i> be talking about static frameworks, but I haven&#8217;t read closely enough to be sure.  If you have any more detailed discussions (or can point me towards someone who does), I&#8217;d love a link.</p>

<p>Quick aside&#8211;I live in the Baltimore area, and there&#8217;s an Airline (AirTran?) that is running a series of commercials related to the Baltimore Ravens.  One of them features a rather &#8230; <i>intense</i> &#8230; individual who knows trivia down to the minute detail on his fantasy football players.  His friend suggests he needs a girlfriend.  He responds (maybe a slight paraphrase):  &#8220;Fantasy football <i>is</i> my girlfriend.&#8221;</p>

<p>Thought you&#8217;d appreciate it. ;-)</p>

<p>-greg</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus Zarra</title>
		<link>http://www.cimgf.com/2009/05/03/core-data-and-plug-ins/comment-page-1/#comment-1336</link>
		<dc:creator>Marcus Zarra</dc:creator>
		<pubDate>Sun, 02 May 2010 19:09:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=512#comment-1336</guid>
		<description>&lt;p&gt;You can&#039;t do that.  Each model is a silo of data that can only have weak references to the data in the other silos.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You can&#8217;t do that.  Each model is a silo of data that can only have weak references to the data in the other silos.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: omnius</title>
		<link>http://www.cimgf.com/2009/05/03/core-data-and-plug-ins/comment-page-1/#comment-1335</link>
		<dc:creator>omnius</dc:creator>
		<pubDate>Sun, 02 May 2010 17:03:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=512#comment-1335</guid>
		<description>&lt;p&gt;What if entities in one model are subentities of an abstract class defined in the main model?&lt;/p&gt;

&lt;p&gt;I tried making a duplicate abstract entity in the second core data model, but it still crashed complaining of duplicate entities.  Without the duplicate, there seems to be no way to tell core data that the entity is actually a subentity of an entity in a different file.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>What if entities in one model are subentities of an abstract class defined in the main model?</p>

<p>I tried making a duplicate abstract entity in the second core data model, but it still crashed complaining of duplicate entities.  Without the duplicate, there seems to be no way to tell core data that the entity is actually a subentity of an entity in a different file.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: f93erad</title>
		<link>http://www.cimgf.com/2009/05/03/core-data-and-plug-ins/comment-page-1/#comment-1197</link>
		<dc:creator>f93erad</dc:creator>
		<pubDate>Mon, 11 May 2009 13:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=512#comment-1197</guid>
		<description>&lt;p&gt;Nice!&lt;/p&gt;

&lt;p&gt;The next step would be to add support for document-based Core Data apps. Storing one additional file for each plug-in would be slightly impractical for end users. One would probably want to place all files together in a bundle instead.&lt;/p&gt;

&lt;p&gt;Before reading this article I would have said that extra plug-in storage in a document-based Core Data app is incredibly difficult. Now it just seems like a lot of hard work!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nice!</p>

<p>The next step would be to add support for document-based Core Data apps. Storing one additional file for each plug-in would be slightly impractical for end users. One would probably want to place all files together in a bundle instead.</p>

<p>Before reading this article I would have said that extra plug-in storage in a document-based Core Data app is incredibly difficult. Now it just seems like a lot of hard work!</p>]]></content:encoded>
	</item>
</channel>
</rss>

