<?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: How To Read a File From Your Application Bundle</title>
	<atom:link href="http://iPhoneIncubator.com/blog/data-management/how-to-read-a-file-from-your-application-bundle/feed" rel="self" type="application/rss+xml" />
	<link>http://iPhoneIncubator.com/blog/data-management/how-to-read-a-file-from-your-application-bundle</link>
	<description>Tips and Tricks for iPhone, iPod, iPad and iOS Developers</description>
	<lastBuildDate>Sun, 18 Jul 2010 17:17:16 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Phil</title>
		<link>http://iPhoneIncubator.com/blog/data-management/how-to-read-a-file-from-your-application-bundle/comment-page-1#comment-2672</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Thu, 08 Apr 2010 07:55:52 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=30#comment-2672</guid>
		<description>Hi and thanks for the help,


I have sucessfully read the text file in, however it isn&#039;t full justified. How can I achieve full justification?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi and thanks for the help,</p>
<p>I have sucessfully read the text file in, however it isn&#8217;t full justified. How can I achieve full justification?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miss e.</title>
		<link>http://iPhoneIncubator.com/blog/data-management/how-to-read-a-file-from-your-application-bundle/comment-page-1#comment-2350</link>
		<dc:creator>miss e.</dc:creator>
		<pubDate>Fri, 05 Mar 2010 07:05:14 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=30#comment-2350</guid>
		<description>can i have full simple code about reading from txt file using xcode??

please..i am still new on this

thank you.</description>
		<content:encoded><![CDATA[<p>can i have full simple code about reading from txt file using xcode??</p>
<p>please..i am still new on this</p>
<p>thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://iPhoneIncubator.com/blog/data-management/how-to-read-a-file-from-your-application-bundle/comment-page-1#comment-2227</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Sun, 21 Feb 2010 21:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=30#comment-2227</guid>
		<description>This is great! However I can&#039;t get a UITextView to display a simple string from a text file. I even used your exact code:

- (void)viewDidLoad {
    [super viewDidLoad];
	
	NSString *filePath = [[NSBundle mainBundle] pathForResource:@&quot;untitled&quot; ofType:@&quot;txt&quot;];
	if (filePath) {
		NSString *myText = [NSString stringWithContentsOfFile:filePath];
		if (myText) {
			textView.text= myText;
		}
	}
}</description>
		<content:encoded><![CDATA[<p>This is great! However I can&#8217;t get a UITextView to display a simple string from a text file. I even used your exact code:</p>
<p>- (void)viewDidLoad {<br />
    [super viewDidLoad];</p>
<p>	NSString *filePath = [[NSBundle mainBundle] pathForResource:@&#8221;untitled&#8221; ofType:@&#8221;txt&#8221;];<br />
	if (filePath) {<br />
		NSString *myText = [NSString stringWithContentsOfFile:filePath];<br />
		if (myText) {<br />
			textView.text= myText;<br />
		}<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bigo</title>
		<link>http://iPhoneIncubator.com/blog/data-management/how-to-read-a-file-from-your-application-bundle/comment-page-1#comment-2132</link>
		<dc:creator>Bigo</dc:creator>
		<pubDate>Mon, 15 Feb 2010 22:43:08 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=30#comment-2132</guid>
		<description>Thank you very much

I am new to Objective C
I have tons of web and script development knowledge, but this by far is the toughest project I have ever embarked on, but I guess I am going to have to take baby steps with this one.

Thank you very much</description>
		<content:encoded><![CDATA[<p>Thank you very much</p>
<p>I am new to Objective C<br />
I have tons of web and script development knowledge, but this by far is the toughest project I have ever embarked on, but I guess I am going to have to take baby steps with this one.</p>
<p>Thank you very much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://iPhoneIncubator.com/blog/data-management/how-to-read-a-file-from-your-application-bundle/comment-page-1#comment-2124</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Sun, 14 Feb 2010 22:56:22 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=30#comment-2124</guid>
		<description>@Steven: To download a group of files you could package them in a zip archive and then unpack them on the iPhone. But since there&#039;s no native support for zip archives containing multiple files, this is a bit tricky.

It is much easier to have an activity indicator while the web assets are loading. See the sample code attached to &lt;a href=&quot;http://iPhoneIncubator.com/blog/windows-views/360idev-iphone-developers-conference-presentation&quot; rel=&quot;nofollow&quot;&gt;this post&lt;/a&gt; for an example of how to do that.</description>
		<content:encoded><![CDATA[<p>@Steven: To download a group of files you could package them in a zip archive and then unpack them on the iPhone. But since there&#8217;s no native support for zip archives containing multiple files, this is a bit tricky.</p>
<p>It is much easier to have an activity indicator while the web assets are loading. See the sample code attached to <a href="http://iPhoneIncubator.com/blog/windows-views/360idev-iphone-developers-conference-presentation" rel="nofollow">this post</a> for an example of how to do that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://iPhoneIncubator.com/blog/data-management/how-to-read-a-file-from-your-application-bundle/comment-page-1#comment-2119</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Sun, 14 Feb 2010 12:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=30#comment-2119</guid>
		<description>Hey, I thank you in advance - I&#039;ve learned a lot from your blog so far and was hoping you can help me answer a question:

How would I go about either downloading a group of files from a manifest on my server, which I&#039;d then use as assets within in a UIWebView 

OR - keep a loading screen up until all of the content within a UIWebView has been loaded?</description>
		<content:encoded><![CDATA[<p>Hey, I thank you in advance &#8211; I&#8217;ve learned a lot from your blog so far and was hoping you can help me answer a question:</p>
<p>How would I go about either downloading a group of files from a manifest on my server, which I&#8217;d then use as assets within in a UIWebView </p>
<p>OR &#8211; keep a loading screen up until all of the content within a UIWebView has been loaded?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://iPhoneIncubator.com/blog/data-management/how-to-read-a-file-from-your-application-bundle/comment-page-1#comment-2108</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Sat, 13 Feb 2010 02:46:10 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=30#comment-2108</guid>
		<description>@Bigo: Caching content from news feeds that change frequently is a big task. I have literally spent weeks on some projects to implement and fine-tune this particular feature. And there&#039;s no one recipe that fits all situations. So your question is a little bit beyond the scope of a blog post.</description>
		<content:encoded><![CDATA[<p>@Bigo: Caching content from news feeds that change frequently is a big task. I have literally spent weeks on some projects to implement and fine-tune this particular feature. And there&#8217;s no one recipe that fits all situations. So your question is a little bit beyond the scope of a blog post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bigo</title>
		<link>http://iPhoneIncubator.com/blog/data-management/how-to-read-a-file-from-your-application-bundle/comment-page-1#comment-2085</link>
		<dc:creator>Bigo</dc:creator>
		<pubDate>Thu, 11 Feb 2010 17:53:17 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=30#comment-2085</guid>
		<description>Nick,
first thanks for your kindness

I want to read in data from an rss(xml) feed and populate that data in iphone accordingly---- images, headlines and subtext.

I have to achieve this dynamically as many times throughout the day this rss will be updated.

My concerns, how do I read in this data -- 
and upon getting this data and parsing it how do I manage it so it is availble offline (core data) or (sqlite) ???

I know memory is an issue, I guess thats another convo

Please help out kinf SIR!!!</description>
		<content:encoded><![CDATA[<p>Nick,<br />
first thanks for your kindness</p>
<p>I want to read in data from an rss(xml) feed and populate that data in iphone accordingly&#8212;- images, headlines and subtext.</p>
<p>I have to achieve this dynamically as many times throughout the day this rss will be updated.</p>
<p>My concerns, how do I read in this data &#8212;<br />
and upon getting this data and parsing it how do I manage it so it is availble offline (core data) or (sqlite) ???</p>
<p>I know memory is an issue, I guess thats another convo</p>
<p>Please help out kinf SIR!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://iPhoneIncubator.com/blog/data-management/how-to-read-a-file-from-your-application-bundle/comment-page-1#comment-2077</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Thu, 11 Feb 2010 04:57:28 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=30#comment-2077</guid>
		<description>@matthew: If you&#039;re trying to load a local HTML file into your detailView, then &lt;a href=&quot;http://iPhoneIncubator.com/blog/windows-views/uiwebview-revisited&quot; rel=&quot;nofollow&quot;&gt;this post&lt;/a&gt; might help.</description>
		<content:encoded><![CDATA[<p>@matthew: If you&#8217;re trying to load a local HTML file into your detailView, then <a href="http://iPhoneIncubator.com/blog/windows-views/uiwebview-revisited" rel="nofollow">this post</a> might help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matthew</title>
		<link>http://iPhoneIncubator.com/blog/data-management/how-to-read-a-file-from-your-application-bundle/comment-page-1#comment-2050</link>
		<dc:creator>matthew</dc:creator>
		<pubDate>Tue, 09 Feb 2010 13:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=30#comment-2050</guid>
		<description>This is great. I have been searching everywhere and I appreciate you sharing your knowledge.

I am trying to accomplish a similar task as mira. I am trying to create detail pages for multiple points on a map. All of the name, subtitle, lat, long, icon and detail html page information are loaded into the plist.

	
		name
		Title
		address
		Subtitle
		latitude
		28.416721
		longitude
		-81.581667
		imageName
		Custom_icon.png
		bulletName
		Custom_icon.png
		detailURL
		test.html
	

These items repeat for each item located on the map. Clicking the &quot;calloutAccessoryControlTapped&quot; loads a new detailView, which is a UIWebView and that is where I want these detailed pages to load.

I have the detailView loading fine and pulling a local HTML file, but it is hardcoded in the filepath. I would like to load  the unique &quot;detailURL&quot; pages from the plist. 

Would you have any idea (he asks hopingly) on how I might accomplish this? Again, thanks for sharing your knowledge with the community.</description>
		<content:encoded><![CDATA[<p>This is great. I have been searching everywhere and I appreciate you sharing your knowledge.</p>
<p>I am trying to accomplish a similar task as mira. I am trying to create detail pages for multiple points on a map. All of the name, subtitle, lat, long, icon and detail html page information are loaded into the plist.</p>
<p>		name<br />
		Title<br />
		address<br />
		Subtitle<br />
		latitude<br />
		28.416721<br />
		longitude<br />
		-81.581667<br />
		imageName<br />
		Custom_icon.png<br />
		bulletName<br />
		Custom_icon.png<br />
		detailURL<br />
		test.html</p>
<p>These items repeat for each item located on the map. Clicking the &#8220;calloutAccessoryControlTapped&#8221; loads a new detailView, which is a UIWebView and that is where I want these detailed pages to load.</p>
<p>I have the detailView loading fine and pulling a local HTML file, but it is hardcoded in the filepath. I would like to load  the unique &#8220;detailURL&#8221; pages from the plist. </p>
<p>Would you have any idea (he asks hopingly) on how I might accomplish this? Again, thanks for sharing your knowledge with the community.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
