<?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: Reading a plist into an NSArray</title>
	<atom:link href="http://iPhoneDeveloperTips.com/data-file-management/reading-a-plist-into-an-nsarray.html/feed" rel="self" type="application/rss+xml" />
	<link>http://iPhoneDeveloperTips.com/data-file-management/reading-a-plist-into-an-nsarray.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: Ajay</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/reading-a-plist-into-an-nsarray.html#comment-66562</link>
		<dc:creator>Ajay</dc:creator>
		<pubDate>Wed, 01 Feb 2012 12:45:51 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=4498#comment-66562</guid>
		<description>So, did you got any feasible solution to the above solution ?Since i am also facing the same issue. Though i am looking to have it by .plist file.</description>
		<content:encoded><![CDATA[<p>So, did you got any feasible solution to the above solution ?Since i am also facing the same issue. Though i am looking to have it by .plist file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jessy</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/reading-a-plist-into-an-nsarray.html#comment-62834</link>
		<dc:creator>jessy</dc:creator>
		<pubDate>Wed, 16 Nov 2011 21:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=4498#comment-62834</guid>
		<description>What you are doing is right. You have to write the array to file path in order to read it. If you don&#039;t write it to plist file path that means there are no entries (list of array)  in the plist. I hope It&#039;ll help u.</description>
		<content:encoded><![CDATA[<p>What you are doing is right. You have to write the array to file path in order to read it. If you don&#8217;t write it to plist file path that means there are no entries (list of array)  in the plist. I hope It&#8217;ll help u.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phynet</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/reading-a-plist-into-an-nsarray.html#comment-62683</link>
		<dc:creator>phynet</dc:creator>
		<pubDate>Mon, 14 Nov 2011 20:17:13 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=4498#comment-62683</guid>
		<description>I&#039;m having troubles with the code, the array is always empty. I&#039;ve checked the location where it stores the plist and it&#039;s ok:

/Users/UserName/Library/Application Support/iPhone Simulator/4.3/Applications/A9BCF093-ABC1-4AC0-8E75-4316739E5B45/ApplicationName.app/DrinkArray.plist

 I&#039;ve tried to write items into the plist trough code:

- (void)writePlist
{ 
    NSMutableArray *anArray = [[NSMutableArray alloc] init]; 
    [anArray addObject:@&quot;Milmers&quot;]; 
    [anArray addObject:@&quot;Xcode&quot;]; 
    NSString *path = [[NSBundle mainBundle] pathForResource:@&quot;DrinkArray&quot; ofType:@&quot;plist&quot;];
 
//    [anArray writeToFile:[self dataFilePath] atomically:YES];
    [anArray writeToFile:path atomically:YES];

    
}

 and that&#039;s how it works, but if I read it without writing, it doesn&#039;t, the array is always empty. What I&#039;m doing wrong?</description>
		<content:encoded><![CDATA[<p>I&#8217;m having troubles with the code, the array is always empty. I&#8217;ve checked the location where it stores the plist and it&#8217;s ok:</p>
<p>/Users/UserName/Library/Application Support/iPhone Simulator/4.3/Applications/A9BCF093-ABC1-4AC0-8E75-4316739E5B45/ApplicationName.app/DrinkArray.plist</p>
<p> I&#8217;ve tried to write items into the plist trough code:</p>
<p>- (void)writePlist<br />
{<br />
    NSMutableArray *anArray = [[NSMutableArray alloc] init];<br />
    [anArray addObject:@"Milmers"];<br />
    [anArray addObject:@"Xcode"];<br />
    NSString *path = [[NSBundle mainBundle] pathForResource:@&#8221;DrinkArray&#8221; ofType:@&#8221;plist&#8221;];</p>
<p>//    [anArray writeToFile:[self dataFilePath] atomically:YES];<br />
    [anArray writeToFile:path atomically:YES];</p>
<p>}</p>
<p> and that&#8217;s how it works, but if I read it without writing, it doesn&#8217;t, the array is always empty. What I&#8217;m doing wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammed</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/reading-a-plist-into-an-nsarray.html#comment-62449</link>
		<dc:creator>Mohammed</dc:creator>
		<pubDate>Thu, 10 Nov 2011 05:05:50 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=4498#comment-62449</guid>
		<description>Thanks a lot for the tutorial! 

I was facing problem managing my plist when the root was a dictionary which doesn&#039;t show inside Xcode. So I changed it in the property list editor then imported it to Xcode again.

Thanks again.
Mohammed</description>
		<content:encoded><![CDATA[<p>Thanks a lot for the tutorial! </p>
<p>I was facing problem managing my plist when the root was a dictionary which doesn&#8217;t show inside Xcode. So I changed it in the property list editor then imported it to Xcode again.</p>
<p>Thanks again.<br />
Mohammed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jessy</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/reading-a-plist-into-an-nsarray.html#comment-61589</link>
		<dc:creator>jessy</dc:creator>
		<pubDate>Thu, 20 Oct 2011 22:43:41 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=4498#comment-61589</guid>
		<description>Hi,

Can anyone help me how to save the user selected array using checkmarks  in a table view ? I want to display the user selected data in another view by saying  the list of items you have selected are apple,strawberry,banana. 
From an array of let&#039;s say 12 fruits. I am new to this ios programming, so please help me.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Can anyone help me how to save the user selected array using checkmarks  in a table view ? I want to display the user selected data in another view by saying  the list of items you have selected are apple,strawberry,banana.<br />
From an array of let&#8217;s say 12 fruits. I am new to this ios programming, so please help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Janene</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/reading-a-plist-into-an-nsarray.html#comment-60811</link>
		<dc:creator>Janene</dc:creator>
		<pubDate>Mon, 03 Oct 2011 19:27:41 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=4498#comment-60811</guid>
		<description>The code runs but the array is empty. I can&#039;t tell if the file is not found or some other error occurs. Ideas welcome. Janene

ps - I thought I&#039;d replied already... sorry if there are 2 replies!</description>
		<content:encoded><![CDATA[<p>The code runs but the array is empty. I can&#8217;t tell if the file is not found or some other error occurs. Ideas welcome. Janene</p>
<p>ps &#8211; I thought I&#8217;d replied already&#8230; sorry if there are 2 replies!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Muchow</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/reading-a-plist-into-an-nsarray.html#comment-60782</link>
		<dc:creator>John Muchow</dc:creator>
		<pubDate>Sun, 02 Oct 2011 14:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=4498#comment-60782</guid>
		<description>In Xcode 4, the default location of the application&#039;s plist file nows appears to be the Supporting Files folder. Is there an issue with the build not working?</description>
		<content:encoded><![CDATA[<p>In Xcode 4, the default location of the application&#8217;s plist file nows appears to be the Supporting Files folder. Is there an issue with the build not working?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Janene</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/reading-a-plist-into-an-nsarray.html#comment-60749</link>
		<dc:creator>Janene</dc:creator>
		<pubDate>Sat, 01 Oct 2011 18:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=4498#comment-60749</guid>
		<description>How does one get the plist file into the app bundle/resources in XCode 4? There is no Resources group in my project - the generated plist is just in &quot;Supporting Files&quot;.

Tx</description>
		<content:encoded><![CDATA[<p>How does one get the plist file into the app bundle/resources in XCode 4? There is no Resources group in my project &#8211; the generated plist is just in &#8220;Supporting Files&#8221;.</p>
<p>Tx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: narender</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/reading-a-plist-into-an-nsarray.html#comment-60338</link>
		<dc:creator>narender</dc:creator>
		<pubDate>Mon, 19 Sep 2011 09:26:21 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=4498#comment-60338</guid>
		<description>it&#039;s very nice to understand about the plist reading  and writing 
give more assignments about the plist data appending and deleting the data from the plist</description>
		<content:encoded><![CDATA[<p>it&#8217;s very nice to understand about the plist reading  and writing<br />
give more assignments about the plist data appending and deleting the data from the plist</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sajan</title>
		<link>http://iPhoneDeveloperTips.com/data-file-management/reading-a-plist-into-an-nsarray.html#comment-58714</link>
		<dc:creator>Sajan</dc:creator>
		<pubDate>Tue, 23 Aug 2011 11:25:37 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=4498#comment-58714</guid>
		<description>haiiiiiiiiiiii, it is very simple.</description>
		<content:encoded><![CDATA[<p>haiiiiiiiiiiii, it is very simple.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

