<?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: Read and Write Array, Dictionary and Other Collections to Files</title>
	<atom:link href="http://iPhoneDeveloperTips.com/data-file-management/read-and-write-array-dictionary-and-other-collections-to-files.html/feed" rel="self" type="application/rss+xml" />
	<link>http://iPhoneDeveloperTips.com/data-file-management/read-and-write-array-dictionary-and-other-collections-to-files.html</link>
	<description>iOS Developer Tips, Tricks and Tutorials.</description>
	<lastBuildDate>Wed, 08 Feb 2012 06:31:16 -0600</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Stephen Campbell</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/read-and-write-array-dictionary-and-other-collections-to-files.html#comment-58280</link>
		<dc:creator>Stephen Campbell</dc:creator>
		<pubDate>Thu, 18 Aug 2011 17:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=5492#comment-58280</guid>
		<description>Thanks for that.

I can&#039;t remember what I changed to get it working, but it&#039;s been fine for a while now.

Cheers,
Stephen</description>
		<content:encoded><![CDATA[<p>Thanks for that.</p>
<p>I can&#8217;t remember what I changed to get it working, but it&#8217;s been fine for a while now.</p>
<p>Cheers,<br />
Stephen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iAS</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/read-and-write-array-dictionary-and-other-collections-to-files.html#comment-58276</link>
		<dc:creator>iAS</dc:creator>
		<pubDate>Thu, 18 Aug 2011 14:48:23 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=5492#comment-58276</guid>
		<description>@Stephen, you are correct.

Even i faced same problem when i tried to write the NSMutableArray A into plist using 
I had A consist of 3 Custom Objects,
  Each Object containing five NSString elements, so in all 15 NSString element. 

[&lt;A writeToFile:path atomically:YES];

But, this wont work as NSMutableArray or NSDictionary, can be written to Plist, but not the Custom NSMutableArray or NSDictionary into plist.

So, what i did is i fetched the first or desired element from the Custom Array and unwrap the object and store its corresponding five values in some temp array.

And that did solved my problem.</description>
		<content:encoded><![CDATA[<p>@Stephen, you are correct.</p>
<p>Even i faced same problem when i tried to write the NSMutableArray A into plist using<br />
I had A consist of 3 Custom Objects,<br />
  Each Object containing five NSString elements, so in all 15 NSString element. </p>
<p>[&lt;A writeToFile:path atomically:YES];</p>
<p>But, this wont work as NSMutableArray or NSDictionary, can be written to Plist, but not the Custom NSMutableArray or NSDictionary into plist.</p>
<p>So, what i did is i fetched the first or desired element from the Custom Array and unwrap the object and store its corresponding five values in some temp array.</p>
<p>And that did solved my problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Campbell</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/read-and-write-array-dictionary-and-other-collections-to-files.html#comment-12386</link>
		<dc:creator>Stephen Campbell</dc:creator>
		<pubDate>Wed, 31 Mar 2010 22:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=5492#comment-12386</guid>
		<description>Hi Bill,
I&#039;m using code similar to what you&#039;ve written above. However, writeToFile returns NO when I try to write an array to a file, and the file remains empty.

I&#039;ve used [[NSFileManager defaultManager] isWritableFileAtPath:locFilePath] to verify if the file exists, and is writable, which it is. I can also see the file in the file system using Finder. It is currently empty.

The array I&#039;m trying to write is an array of dictionary objects.

Do you know if there&#039;s a way I can troubleshoot this?

Many thanks,
Stephen C</description>
		<content:encoded><![CDATA[<p>Hi Bill,<br />
I&#8217;m using code similar to what you&#8217;ve written above. However, writeToFile returns NO when I try to write an array to a file, and the file remains empty.</p>
<p>I&#8217;ve used [[NSFileManager defaultManager] isWritableFileAtPath:locFilePath] to verify if the file exists, and is writable, which it is. I can also see the file in the file system using Finder. It is currently empty.</p>
<p>The array I&#8217;m trying to write is an array of dictionary objects.</p>
<p>Do you know if there&#8217;s a way I can troubleshoot this?</p>
<p>Many thanks,<br />
Stephen C</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Muchow</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/read-and-write-array-dictionary-and-other-collections-to-files.html#comment-9684</link>
		<dc:creator>John Muchow</dc:creator>
		<pubDate>Wed, 17 Feb 2010 20:13:52 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=5492#comment-9684</guid>
		<description>Hey Bill,

If I understand your question, yes, if you use mutable classes, I would think you could read into those objects, make changes, then write those same objects back to the system.</description>
		<content:encoded><![CDATA[<p>Hey Bill,</p>
<p>If I understand your question, yes, if you use mutable classes, I would think you could read into those objects, make changes, then write those same objects back to the system.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/read-and-write-array-dictionary-and-other-collections-to-files.html#comment-9683</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Wed, 17 Feb 2010 20:10:16 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=5492#comment-9683</guid>
		<description>Interesting, I was going to play with something similar in the next couple of weeks.

Q: If I now want to update the Array or Dictionary, would I instead use Mutable objects and simply call &quot;writeToFile: xxxxxPath atomically:YES&quot; (where xxxxx is array or dict)?

Thanks.</description>
		<content:encoded><![CDATA[<p>Interesting, I was going to play with something similar in the next couple of weeks.</p>
<p>Q: If I now want to update the Array or Dictionary, would I instead use Mutable objects and simply call &#8220;writeToFile: xxxxxPath atomically:YES&#8221; (where xxxxx is array or dict)?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

