<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iPhone Programming Tutorials &#187; save files</title>
	<atom:link href="http://www.icodeblog.com/tag/save-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.icodeblog.com</link>
	<description>Conquering the mobile universe</description>
	<lastBuildDate>Tue, 06 Dec 2011 23:02:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Code Snippet â€“ Quickly Find The Documents Directory</title>
		<link>http://www.icodeblog.com/2009/09/09/code-snippet-quickly-find-the-documents-directory/</link>
		<comments>http://www.icodeblog.com/2009/09/09/code-snippet-quickly-find-the-documents-directory/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 14:54:18 +0000</pubDate>
		<dc:creator>brandontreb</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[iPhone Coding]]></category>
		<category><![CDATA[iphone dev]]></category>
		<category><![CDATA[iphone documents]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[save files]]></category>

		<guid isPermaLink="false">http://icodeblog.com/?p=1295</guid>
		<description><![CDATA[As many of you may have seen by now, there are quite a few ways to find the documents directory on the iPhone.Â  For those of you who don&#8217;t know, the documents directory of an app is the location where you should save your application data.Â  While finding the documents directory is a trivial task, it is very important when coding most applications.Â  Apple has provided quite a few ways for resolving the path to this directory.
If you read through  ...]]></description>
			<content:encoded><![CDATA[<p>As many of you may have seen by now, there are quite a few ways to find the documents directory on the iPhone.Â  For those of you who don&#8217;t know, the documents directory of an app is the location where you should save your application data.Â  While finding the documents directory is a trivial task, it is very important when coding most applications.Â  Apple has provided quite a few ways for resolving the path to this directory.</p>
<p>If you read through some of Apple&#8217;s sample code, you will see their code to do this is generally 3 or 4 lines long.Â  This seems like a lot of code to perform such a simple task.Â  Here is a nice one-liner for you to use in your applications.</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #400080;">NSString</span> <span style="color: #002200;">*</span> docs <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>NSHomeDirectory<span style="color: #002200;">&#40;</span><span style="color: #002200;">&#41;</span>
						   stringByAppendingPathComponent<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;Documents&quot;</span><span style="color: #002200;">&#93;</span>;</pre></div></div>

<p>It&#8217;s clean and concise.  Happy iCoding!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icodeblog.com/2009/09/09/code-snippet-quickly-find-the-documents-directory/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

