<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>nslibrarydirectory &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/nslibrarydirectory/</link>
	<description>Feed of posts on WordPress.com tagged "nslibrarydirectory"</description>
	<pubDate>Tue, 21 May 2013 20:32:20 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[writable paths in iphone]]></title>
<link>http://care2achieve.wordpress.com/2012/04/24/writable-paths-in-iphone/</link>
<pubDate>Tue, 24 Apr 2012 16:31:55 +0000</pubDate>
<dc:creator>naresh</dc:creator>
<guid>http://care2achieve.wordpress.com/2012/04/24/writable-paths-in-iphone/</guid>
<description><![CDATA[we use NSDocumentDirectory mostly to save files which are used in the project. but we have two other]]></description>
<content:encoded><![CDATA[<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">we use NSDocumentDirectory mostly to save files which are used in the project. but we have two other paths in the iPhone application,  they are also read and writable paths as documents directory. now lets see the difference between all three</p>
<p style="text-align:justify;"><span style="color:#800000;"><strong>NSDocumentDirectory:</strong></span><br />
it is permanent storage(exists until the app will be deleted)<br />
and all files which are in this directory are sharable in iTunes</p>
<p style="text-align:justify;"><span style="color:#993300;">NSArray *docs = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);</span><br />
<span style="color:#993300;">NSString *documents = [docs objectAtIndex:0];</span></p>
<p style="text-align:justify;"><strong><span style="color:#800000;">NSLibraryDirectory:</span></strong><br />
it is permanent storage (exists until the app will be deleted)<br />
and files in this directory will not be shared in iTunes.</p>
<p style="text-align:justify;"><span style="color:#993300;">NSArray *lib = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);</span><br />
<span style="color:#993300;">NSString *library = [lib objectAtIndex:0];</span></p>
<p style="text-align:justify;"><strong><span style="color:#800000;">NSCachesDirectory:</span></strong><br />
this is temporary storage i.e, files will be deleted by iphone(i think these files will be deleted if app is terminated) and files in this direcotry will not be sharable in iTunes. its better to store temperary files</p>
<p style="text-align:justify;"><span style="color:#993300;">NSArray *cach = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);</span><br />
<span style="color:#993300;">NSString *cache = [cache objectAtIndex:0];</span></p>
]]></content:encoded>
</item>

</channel>
</rss>
