<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for a/Caro</title>
	<atom:link href="http://acaro.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://acaro.wordpress.com</link>
	<description>Random Hacks</description>
	<lastBuildDate>Thu, 17 Dec 2009 18:28:59 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Packages and Core Data documents by гей лесби знакомства</title>
		<link>http://acaro.wordpress.com/2007/07/09/packages-and-core-data-documents/#comment-323</link>
		<dc:creator>гей лесби знакомства</dc:creator>
		<pubDate>Thu, 17 Dec 2009 18:28:59 +0000</pubDate>
		<guid isPermaLink="false">http://acaro.wordpress.com/2007/07/09/packages-and-core-data-documents/#comment-323</guid>
		<description>я вот что скажу: неподражаемо..</description>
		<content:encoded><![CDATA[<p>я вот что скажу: неподражаемо..</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using configure to build MacOS universal binaries by Jane Goody</title>
		<link>http://acaro.wordpress.com/2008/01/11/using-configure-to-build-macos-universal-binaries/#comment-322</link>
		<dc:creator>Jane Goody</dc:creator>
		<pubDate>Wed, 22 Apr 2009 06:40:29 +0000</pubDate>
		<guid isPermaLink="false">http://acaro.wordpress.com/2008/01/11/using-configure-to-build-macos-universal-binaries/#comment-322</guid>
		<description>I follow your blog for quite a long time and should tell you that your posts always prove to be of a high value and quality for readers.</description>
		<content:encoded><![CDATA[<p>I follow your blog for quite a long time and should tell you that your posts always prove to be of a high value and quality for readers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installing Alfresco on Debian GNU/Linux by Recent Links Tagged With "tomcat" - JabberTags</title>
		<link>http://acaro.wordpress.com/2008/08/26/installing-alfresco-on-debian-gnulinux/#comment-321</link>
		<dc:creator>Recent Links Tagged With "tomcat" - JabberTags</dc:creator>
		<pubDate>Thu, 23 Oct 2008 10:34:05 +0000</pubDate>
		<guid isPermaLink="false">http://acaro.wordpress.com/?p=32#comment-321</guid>
		<description>[...] public links &gt;&gt; tomcat   Installing Alfresco on Debian GNU/Linux Saved by pateruya on Wed 22-10-2008   Tab Sweep : JBoss Saved by matthewmerwingoat10 on Mon [...]</description>
		<content:encoded><![CDATA[<p>[...] public links &gt;&gt; tomcat   Installing Alfresco on Debian GNU/Linux Saved by pateruya on Wed 22-10-2008   Tab Sweep : JBoss Saved by matthewmerwingoat10 on Mon [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Core Data Persistent Packages revisited by David</title>
		<link>http://acaro.wordpress.com/2007/07/19/core-data-persistent-packages-revisited/#comment-320</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 14 Jul 2008 18:36:07 +0000</pubDate>
		<guid isPermaLink="false">http://acaro.wordpress.com/2007/07/19/core-data-persistent-packages-revisited/#comment-320</guid>
		<description>I just noticed a few issues with my last comment, here are some fixes:

+ (NSURL *)dataStoreURLFromPackageURL:(NSURL *)URL {
	NSString *storePath = [[URL relativePath] stringByAppendingPathComponent:[self fileStoreName]];
	return [NSURL fileURLWithPath:storePath];
}

I accidently did not make storePath a pointer and the capitalization of &#039;URL&#039; was off.</description>
		<content:encoded><![CDATA[<p>I just noticed a few issues with my last comment, here are some fixes:</p>
<p>+ (NSURL *)dataStoreURLFromPackageURL:(NSURL *)URL {<br />
	NSString *storePath = [[URL relativePath] stringByAppendingPathComponent:[self fileStoreName]];<br />
	return [NSURL fileURLWithPath:storePath];<br />
}</p>
<p>I accidently did not make storePath a pointer and the capitalization of &#8216;URL&#8217; was off.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Core Data Persistent Packages revisited by David</title>
		<link>http://acaro.wordpress.com/2007/07/19/core-data-persistent-packages-revisited/#comment-319</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 14 Jul 2008 18:23:39 +0000</pubDate>
		<guid isPermaLink="false">http://acaro.wordpress.com/2007/07/19/core-data-persistent-packages-revisited/#comment-319</guid>
		<description>I may be a year late, but I do have a suggestion for a modification. If instead of using pattern matching to do the path string manipulation, use the NSString path manipulation methods instead.

For dataStoreURLFromPackageURL:, use:
+ (NSURL *)dataStoreURLFromPackageURL:(NSURL *)URL {
	NSString storePath = [[url relativePath] stringByAppendingPathComponent:[self fileStoreName]];
	return [NSURL fileURLWithPath:storePath];
}


For packageURLFromDataStoreURL: it is much simpler, you can use:
+ (NSURL *)packageURLFromDataStoreURL:(NSURL *)URL {
	NSString *storePath = [URL relativePath];
	return [NSURL fileURLWithPath:[storePath stringByDeletingLastPathComponent]];
}

This removes the need for the NSDocumentSubcontroller subclass from having to check to see if a document exists, as the name translation is independent of an instantiated document. I do not know if some of the idioms are available from ruby, but in ObjC I use &#039;self&#039; in the class methods to make it polymorphic safe, i.e. subclasses can override the class method and have it still work. When the data store name is required in the instance methods I use [[self class] fileStoreName] for the same reason.</description>
		<content:encoded><![CDATA[<p>I may be a year late, but I do have a suggestion for a modification. If instead of using pattern matching to do the path string manipulation, use the NSString path manipulation methods instead.</p>
<p>For dataStoreURLFromPackageURL:, use:<br />
+ (NSURL *)dataStoreURLFromPackageURL:(NSURL *)URL {<br />
	NSString storePath = [[url relativePath] stringByAppendingPathComponent:[self fileStoreName]];<br />
	return [NSURL fileURLWithPath:storePath];<br />
}</p>
<p>For packageURLFromDataStoreURL: it is much simpler, you can use:<br />
+ (NSURL *)packageURLFromDataStoreURL:(NSURL *)URL {<br />
	NSString *storePath = [URL relativePath];<br />
	return [NSURL fileURLWithPath:[storePath stringByDeletingLastPathComponent]];<br />
}</p>
<p>This removes the need for the NSDocumentSubcontroller subclass from having to check to see if a document exists, as the name translation is independent of an instantiated document. I do not know if some of the idioms are available from ruby, but in ObjC I use &#8217;self&#8217; in the class methods to make it polymorphic safe, i.e. subclasses can override the class method and have it still work. When the data store name is required in the instance methods I use [[self class] fileStoreName] for the same reason.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Core Data Persistent Packages revisited by victor</title>
		<link>http://acaro.wordpress.com/2007/07/19/core-data-persistent-packages-revisited/#comment-316</link>
		<dc:creator>victor</dc:creator>
		<pubDate>Mon, 24 Mar 2008 01:45:05 +0000</pubDate>
		<guid isPermaLink="false">http://acaro.wordpress.com/2007/07/19/core-data-persistent-packages-revisited/#comment-316</guid>
		<description>I&#039;m a real Cocoa newbie trying to get my head around all the concepts. 

Your code helped me immensely! I had some problems porting it to Objective C (mainly a weird error that occurred if I didn&#039;t pass an NSError to super&#039;s writeToUrl:.. and the lack of RegExps) but I think it&#039;s working now.

Besides the Recent Items thing, the window title icon seems to lock onto the data store, instead of the package (when opening a file). I don&#039;t think that&#039;s too hard to fix though.

Thank you!</description>
		<content:encoded><![CDATA[<p>I&#8217;m a real Cocoa newbie trying to get my head around all the concepts. </p>
<p>Your code helped me immensely! I had some problems porting it to Objective C (mainly a weird error that occurred if I didn&#8217;t pass an NSError to super&#8217;s writeToUrl:.. and the lack of RegExps) but I think it&#8217;s working now.</p>
<p>Besides the Recent Items thing, the window title icon seems to lock onto the data store, instead of the package (when opening a file). I don&#8217;t think that&#8217;s too hard to fix though.</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Packages and Core Data documents by billibala</title>
		<link>http://acaro.wordpress.com/2007/07/09/packages-and-core-data-documents/#comment-233</link>
		<dc:creator>billibala</dc:creator>
		<pubDate>Wed, 01 Aug 2007 14:05:04 +0000</pubDate>
		<guid isPermaLink="false">http://acaro.wordpress.com/2007/07/09/packages-and-core-data-documents/#comment-233</guid>
		<description>Great article, Laurent!

I&#039;ve done all the studied you mentioned in your article and, luckily, I found your article in google.  I&#039;ll try your suggestion in my application.  Thanks a lot!!!</description>
		<content:encoded><![CDATA[<p>Great article, Laurent!</p>
<p>I&#8217;ve done all the studied you mentioned in your article and, luckily, I found your article in google.  I&#8217;ll try your suggestion in my application.  Thanks a lot!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Packages and Core Data documents by Core Data Persistent Packages revisited &#171; a/Caro</title>
		<link>http://acaro.wordpress.com/2007/07/09/packages-and-core-data-documents/#comment-231</link>
		<dc:creator>Core Data Persistent Packages revisited &#171; a/Caro</dc:creator>
		<pubDate>Thu, 19 Jul 2007 12:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://acaro.wordpress.com/2007/07/09/packages-and-core-data-documents/#comment-231</guid>
		<description>[...] 19th, 2007   This post is a follow-up to another post I wrote on the very same subject. I am showing here the full implementation of a [...]</description>
		<content:encoded><![CDATA[<p>[...] 19th, 2007   This post is a follow-up to another post I wrote on the very same subject. I am showing here the full implementation of a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Packages and Core Data documents by Core Data Package Documents &#171; Ruby and Cocoa</title>
		<link>http://acaro.wordpress.com/2007/07/09/packages-and-core-data-documents/#comment-230</link>
		<dc:creator>Core Data Package Documents &#171; Ruby and Cocoa</dc:creator>
		<pubDate>Thu, 19 Jul 2007 12:25:45 +0000</pubDate>
		<guid isPermaLink="false">http://acaro.wordpress.com/2007/07/09/packages-and-core-data-documents/#comment-230</guid>
		<description>[...] 19th, 2007   This post is a follow-up to another post I wrote on the very same subject. I am showing here the full implementation of a [...]</description>
		<content:encoded><![CDATA[<p>[...] 19th, 2007   This post is a follow-up to another post I wrote on the very same subject. I am showing here the full implementation of a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Packages and Core Data documents by acaro</title>
		<link>http://acaro.wordpress.com/2007/07/09/packages-and-core-data-documents/#comment-229</link>
		<dc:creator>acaro</dc:creator>
		<pubDate>Wed, 11 Jul 2007 16:18:35 +0000</pubDate>
		<guid isPermaLink="false">http://acaro.wordpress.com/2007/07/09/packages-and-core-data-documents/#comment-229</guid>
		<description>Hi Laurent, thank you very much for your comment and your remarks! I had effectively missed those RubyCocoa bits... I look forward to integrating your suggestion in my code soon!</description>
		<content:encoded><![CDATA[<p>Hi Laurent, thank you very much for your comment and your remarks! I had effectively missed those RubyCocoa bits&#8230; I look forward to integrating your suggestion in my code soon!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
