<?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 Development Blog &#187; Testing</title>
	<atom:link href="http://iPhoneIncubator.com/blog/category/testing/feed" rel="self" type="application/rss+xml" />
	<link>http://iPhoneIncubator.com/blog</link>
	<description>Tips and Tricks for iPhone, iPod, iPad and iOS Developers</description>
	<lastBuildDate>Fri, 09 Jul 2010 16:10:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Are you testing on both 2.0 and 2.1?</title>
		<link>http://iPhoneIncubator.com/blog/testing/are-you-testing-on-both-20-and-21</link>
		<comments>http://iPhoneIncubator.com/blog/testing/are-you-testing-on-both-20-and-21#comments</comments>
		<pubDate>Thu, 02 Oct 2008 15:27:27 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Testing]]></category>
		<category><![CDATA[NSData]]></category>

		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=42</guid>
		<description><![CDATA[One of the great advantages of the iPhone platform is that it&#8217;s a single target to develop for. It doesn&#8217;t suffer from the &#8220;write once, test everywhere&#8221; syndrome of J2ME. But with 2.0, 2.1 and future firmware releases, not to mention rumored tablets and other new touch products, this will change.
The other day I managed [...]<p>Post from <a href="http://iPhoneIncubator.com/blog">iPhone Development Blog</a> Copyright &copy; 2009 Nick Dalton - <a href="http://iPhoneIncubator.com/blog/portfolio">iPhone Developer</a><br/><br/><a href="http://iPhoneIncubator.com/blog/testing/are-you-testing-on-both-20-and-21">Are you testing on both 2.0 and 2.1?</a></p>
]]></description>
			<content:encoded><![CDATA[<p>One of the great advantages of the iPhone platform is that it&#8217;s a single target to develop for. It doesn&#8217;t suffer from the &#8220;write once, test everywhere&#8221; syndrome of J2ME. But with 2.0, 2.1 and future firmware releases, not to mention rumored tablets and other new touch products, this will change.</p>
<p>The other day I managed to write an application that worked on 2.0 but not 2.1 devices. After some investigation I found that the root cause was a subtle change Apple made in 2.1 without any notification in release notes or in the SDK documentation.</p>
<p>Consider this very common snippet of code:</p>
<pre name="code" class="c">NSData *webData = [NSData dataWithContentsOfURL:url];</pre>
<p>If the url in the above example refers to a file that is gzipped, e.g. www.myserver.com/file.gz, NSData will now (in 2.1) unzip the data automagically. So if your code was expecting to receive a representation of the compressed file, it will now break.</p>
<p>Most browsers will to the gzip/gunzip automagically when a web server sends compressed content. This is done to save bandwidth, improve download speed, and is generally a Good Thing. When the same &#8220;feature&#8221; is implemented in the SDK and you are not given any control over the behavior, that&#8217;s a Bad Thing.</p>
<p>The moral of this story is that you need to test all your code on both 2.0 and 2.1 devices.<br />
 </p>
<p>Post from <a href="http://iPhoneIncubator.com/blog">iPhone Development Blog</a> Copyright &copy; 2009 Nick Dalton - <a href="http://iPhoneIncubator.com/blog/portfolio">iPhone Developer</a><br/><br/><a href="http://iPhoneIncubator.com/blog/testing/are-you-testing-on-both-20-and-21">Are you testing on both 2.0 and 2.1?</a></p>
]]></content:encoded>
			<wfw:commentRss>http://iPhoneIncubator.com/blog/testing/are-you-testing-on-both-20-and-21/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
