<?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>Denver Dev Blog &#187; iPhone</title>
	<atom:link href="http://ambientideas.com/blog/index.php/tag/iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://ambientideas.com/blog</link>
	<description>Matthew McCullough&#039;s insights on software development as co-founder of Ambient Ideas, LLC</description>
	<lastBuildDate>Mon, 30 Aug 2010 03:10:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Rich Web Experience &#8211; Florida in December</title>
		<link>http://ambientideas.com/blog/index.php/2010/08/rich-web-experience-florida-in-december/</link>
		<comments>http://ambientideas.com/blog/index.php/2010/08/rich-web-experience-florida-in-december/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 22:47:22 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[NFJS]]></category>
		<category><![CDATA[Presenting]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/index.php/2010/08/rich-web-experience-florida-in-december/</guid>
		<description><![CDATA[I'm excited to be presenting at the Rich Web Experience this December. It'll be a great show, but the venue location simply adds to the magnetism. Who can resist beaches and Florida in December?]]></description>
			<content:encoded><![CDATA[<p><img src="http://ambientideas.com/blog/wp-content/uploads/2010/08/RWE_2010_125X125-speaking.png" width="125" height="125" style="float:right;" /></p>
<p>I&#8217;m excited to be presenting at the <a href="http://www.therichwebexperience.com/conference/fort_lauderdale/2010/11/home" target="_blank">Rich Web Experience</a> this December. It&#8217;ll be a great show, but the <a href="http://www.therichwebexperience.com/conference/fort_lauderdale/2010/11/travel" target="_blank">venue location</a> simply adds to the magnetism. Who can resist beaches and Florida in December?</p>
<p>I&#8217;ll be doing a sharpened version of my <a href="http://www.therichwebexperience.com/conference/fort_lauderdale/2010/11/ipad_workshop" target="_blank">iOS workshop with Ben Ellingson</a>. Attendance numbers will be greatly limited compared to our last time we ran this workshop so as to give plenty of one-on-one attention to students. We&#8217;ll get to use the latest iOS 4 SDK with its polished UI, developer-helpful features and Git integration.  I hope you&#8217;ll consider joining us for this special one-day addition to the conference.  Ben and I will be tempted to run the workshop <a href="http://www.starwoodhotels.com/pub/media/3328/wes3328ex.81846_md.jpg" target="_blank">on the beach</a>.</p>
<p>I&#8217;ll also be doing a Git workshop in the main portion of the show.  If you haven&#8217;t already heard, <a href="http://git-scm.com/" target="_blank" title="Git">Git</a> (and <a href="http://github.com" target="_blank">GitHub</a>) is the hot new open source source code control tool that is agnostic to your programming language of choice but adds features driven by developer needs, not by marketing teams. Bring your notebook, see what the buzz is about, and walk away with a Monday-morning-equipped set of skills to <a href="http://www.nofluffjuststuff.com/training/video/git_101" target="_blank">apply Git</a> on your next project.</p>
<p>See you on the beach!</p>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2010/08/rich-web-experience-florida-in-december/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone 4: Excessive nightly 3G Data Usage while on WiFi</title>
		<link>http://ambientideas.com/blog/index.php/2010/07/iphone-4-excessive-nightly-3g-data-usage-while-on-wifi/</link>
		<comments>http://ambientideas.com/blog/index.php/2010/07/iphone-4-excessive-nightly-3g-data-usage-while-on-wifi/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 17:40:31 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/index.php/2010/07/iphone-4-excessive-nightly-3g-data-usage-while-on-wifi/</guid>
		<description><![CDATA[An  AT&#38;T forum thread entitled "iphone 2am unauthorized data usage"    Another AT&#38;T thread from 2009 stating similar complaints on iPhone OS 3.0    A claim that it is just a usage tally  (which still doesn't explain the days I never leave the office WiFi).   "iPod touch can stay connected to Wi-Fi when asleep so you can receive incoming VoIP calls and notifications from compatible third-party apps." ...  "There’s no word on whether this applies to the iPhone as well (since cellular data is typically persistent anyway), but it would be a nice feature to have in all iOS devices — including iPad, especially when roaming with data turned off, or even just to prevent the delays that usually accompany reconnecting to Wi-Fi based remote control apps." 
]]></description>
			<content:encoded><![CDATA[<p>With my new iPhone 4, I thought &#8220;I&#8217;ll just switch to a 200MB data plan&#8221; since I mostly use WiFi and have rarely had a month of greater than 150MB data usage.</p>
<p><b>What a mistake</b>. With no apps running in the background, <b>Push</b> turned off and <b>Notifications</b> turned off, according to the <a href="http://itunes.apple.com/us/app/at-t-mywireless-mobile/id309172177?mt=8" target="_blank">myWireless AT&amp;T app</a>, my phone is using between 5 and 50 MB of data per night.  The usage occurs between 11pm and 3am MT. Upon waking the phone up, it shows it is connected to WiFi, but I get a momentary flicker of the 3G icon. That&#8217;s what makes me suspicious it is using 3G instead of WiFi when it goes to sleep. That behavior is contrary to documentation.</p>
<h2>Articles and Links</h2>
<p>There&#8217;s no shortage of material to point at extolling variations of this problem. Some are old &#8212; as far back as 2008 &#8212; but the post frequency and number of new threads has increased, centered around the iPhone 4 launch and anyone transitioning to a 200MB data plan.</p>
<p>An Apple forum 3+ page post on <a href="http://discussions.apple.com/thread.jspa?threadID=2492572" target="_blank">iPhone 4 using Cellular Data when on standby and connected to wifi</a>.</p>
<p>
A <a href="http://forums.macrumors.com/showthread.php?t=929936&amp;page=2" target="_blank">MacRumors thread that states &#8220;it&#8217;s speculated that it&#8217;s being sent via 3G because the phone typically is sleeping when this occurs, and iPhone (at least until iOS 4.0) never connects via WiFi while asleep &#8211; only via 3G&#8221;</a></p>
<p>The <a href="http://discussions.apple.com/thread.jspa?threadID=2450738" target="_blank">10 page Apple discussion entitled &#8220;Unknown data usage early morning&#8221;</a>.</p>
<p>An <a href="http://forums.wireless.att.com/t5/Apple/iphone-2am-unauthorized-data-usage/td-p/1959513/page/3" target="_blank">AT&amp;T forum thread entitled &#8220;iphone 2am unauthorized data usage&#8221;</a></p>
<p><a href="http://forums.wireless.att.com/t5/Apple/iphone-data-charges/m-p/1821920" target="_blank">Another AT&amp;T thread from 2009 stating similar complaints on iPhone OS 3.0</a></p>
<p><a href="http://forums.macrumors.com/showthread.php?t=967349" target="_blank">A claim that it is just a usage tally</a> (which still doesn&#8217;t explain the days I never leave the office WiFi).</p>
<p><a href="http://www.funkyspacemonkey.com/ios-4-ipod-touch-stay-connected-wifi-asleep-receive-voip-calls-notification" target="_blank">&#8220;iPod touch can stay connected to Wi-Fi when asleep so you can receive incoming VoIP calls and notifications from compatible third-party apps.&#8221; So, WiFi should stay connected.</a><br/><br />
&#8220;There’s no word on whether this applies to the iPhone as well (since cellular data is typically persistent anyway), but it would be a nice feature to have in all iOS devices — including iPad, especially when roaming with data turned off, or even just to prevent the delays that usually accompany reconnecting to Wi-Fi based remote control apps.&#8221;</p>
<p>Older, 2008 post claiming <a href="http://www.geekzone.co.nz/forums.asp?forumid=76&amp;topicid=24034" target="_blank">&#8220;Wi-Fi is usually turned off a little while after in standby.&#8221;</a></p>
<h2>Conclusion</h2>
<p>The only logical explanation is that everyone is just holding it the wrong way, thereby causing it to use more data on 3G than it should.</p>
<p>.<br />
<img src="http://ambientideas.com/blog/wp-content/uploads/2010/07/Apple-iPhone-4-Press-Conference-CSI-Miami.png" width="440" height="480" alt="Apple iPhone 4 Press Conference, CSI Miami.png" /></p>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2010/07/iphone-4-excessive-nightly-3g-data-usage-while-on-wifi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPad, iPhone Certified Developer Program &#8211; A Wild Idea</title>
		<link>http://ambientideas.com/blog/index.php/2010/05/ipad-iphone-certified-developer-program-a-wild-idea/</link>
		<comments>http://ambientideas.com/blog/index.php/2010/05/ipad-iphone-certified-developer-program-a-wild-idea/#comments</comments>
		<pubDate>Fri, 14 May 2010 20:10:51 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/index.php/2010/05/ipad-iphone-certified-developer-program-a-wild-idea/</guid>
		<description><![CDATA[ As much as we (the Software Engineering industry) detest  testing and certification ,  Ben Ellingson  and I were wondering if it would be useful to have an  Apple iPhone skills-certified developer program .    The idea would be that a developer would pass a certain skills test and then be permitted to directly publish bug-fix updates to the store without the  usual review waiting period .  ]]></description>
			<content:encoded><![CDATA[<p>As much as we (the Software Engineering industry) detest <a href="http://www.secc.org.eg/" target="_blank">testing and certification</a>, <a href="http://benellingson.blogspot.com/" target="_blank">Ben Ellingson</a> and I were wondering if it would be useful to have an <a href="http://developer.apple.com/programs/iphone/" target="_blank">Apple iPhone skills-certified developer program</a>.  The idea would be that a developer would pass a certain skills test and then be permitted to directly publish bug-fix updates to the store without the <a href="http://www.macworld.com/article/134698/2008/07/app_store_developers.html" target="_blank">usual review waiting period</a>.  I realize this is controversial and further cements Apple&#8217;s importance in a software release process where many think they should not be involved.</p>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2010/05/ipad-iphone-certified-developer-program-a-wild-idea/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Maven, OSS and iPhone: The Denver NFJS Audience Rocks</title>
		<link>http://ambientideas.com/blog/index.php/2009/06/maven-oss-and-iphone-the-denver-nfjs-audience-rocks/</link>
		<comments>http://ambientideas.com/blog/index.php/2009/06/maven-oss-and-iphone-the-denver-nfjs-audience-rocks/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 17:45:47 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Presentations]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[NFJS]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Presenting]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/index.php/2009/06/maven-oss-and-iphone-the-denver-nfjs-audience-rocks/</guid>
		<description><![CDATA[<p>Of all the cities I've presented in this year for both NFJS, private training, and user groups, two stand out so far as real gems: Minneapolis and Denver.</p>]]></description>
			<content:encoded><![CDATA[<p>Of all the cities I&#8217;ve presented in this year for both <a href="http://nofluffjuststuff.com" target="_blank">NFJS</a>, <a href="http://www.ambientideas.com" target="_blank">private training</a>, and <a href="http://www.denveropensource.org" title="Untitled" target="_blank">user groups</a>, two stand out so far as real gems: <a href="http://www.nofluffjuststuff.com/show_view.jsp?showId=184" target="_blank">Minneapolis</a> and <a href="http://www.nofluffjuststuff.com/show_view.jsp?showId=197" target="_blank">Denver</a>. The audiences are highly engaged and ask challenging questions. This is both scary and energizing as a presenter. You are being asked to call on not just your prepared slides, but your experience and catalog of knowledge to come up with a relevant answer. Sometimes, the audience will even help you with the answers, like on the <a href="http://stackoverflow.com/questions/588866/objective-c-properties-atomoic-vs-nonatomic" target="_blank">defaults for Objective-C&#8217;s @property</a>. It turns out, the answer is: atomic. Thanks <a href="http://twitter.com/johnnywey" target="_blank">Johnny Wey</a>!</p>
<p>Sometimes things just don&#8217;t go perfectly in the open source world. There are times where it seems like a dot release cures many things, but then breaks/regresses several important ones as well. Like the <a href="http://github.com/matthewmccullough/iphoneandjavawebservices/tree/master" target="_blank">XML parsing in the iPhone demo</a>. Turns out, it was a Grails 1.1 issue (which I upgraded to from 1.0.3 to solve another bug) in which optional URL parameters are wrongly required. <a href="http://jira.codehaus.org/browse/GRAILS?report=com.atlassian.jira.plugin.system.project:changelog-panel" target="_blank">Grails 1.1.1</a> fixes it, which I validated at 11pm last night, but it would have been fun to live fix this with the audience. This reinforces the point in my talk though that you should always check your web services, possibly using <a href="http://curl.haxx.se/" target="_blank">curl</a>, or <a href="http://www.soapui.org/" target="_blank">SOAPui</a> prior to connecting your iPhone application to them.</p>
<p>It&#8217;s amazing to see how many of the <a href="http://tech.puredanger.com/2009/04/26/nfjs-twitter/" target="_blank">presenters</a> and <a href="http://hashtags.org/search?q=nfjs&amp;page=1" target="_blank">audience members</a> are on <a href="http://www.twitter.com" target="_blank">Twitter</a> and posting their experiences about <a href="http://twitter.com/nofluff" target="_blank">the conference</a>. That&#8217;s a real change from last year, where hardly anyone was live posting in that fashion. I hope to see you all again in the Fall at the next <a href="http://www.nofluffjuststuff.com/show_view.jsp?showId=208" target="_blank">Denver NFJS</a>, loaded with more difficult questions and an inquiring state of mind.</p>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2009/06/maven-oss-and-iphone-the-denver-nfjs-audience-rocks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone Reaches 50% of Google&#8217;s Mobile Traffic</title>
		<link>http://ambientideas.com/blog/index.php/2009/04/iphone-reaches-50-of-googles-mobile-traffic/</link>
		<comments>http://ambientideas.com/blog/index.php/2009/04/iphone-reaches-50-of-googles-mobile-traffic/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 16:29:33 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[NFJS]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/index.php/2009/04/iphone-reaches-50-of-googles-mobile-traffic/</guid>
		<description><![CDATA[<p>If you need one more reason why, as a developer, you should learn Objective-C, here it is: The latest stats say that the iPhone is now 50% of Google's mobile browser traffic . That is a crushing domination of the market share of even its nearest competitor, Symbian, with about 35%.</p>
]]></description>
			<content:encoded><![CDATA[<p>If you need one more reason why, as a developer, you should <a href="http://cocoadevcentral.com/d/learn_objectivec/" target="_blank">learn Objective-C</a>, here it is: The <a href="http://www.entangledparticles.com/ep/2009/03/iphone-and-android-make-up-50-of-googles-traffic-worldwide.html" target="_blank">latest stats say that the iPhone is now 50% of Google&#8217;s mobile browser traffic</a>. That is a <a href="http://www.entangledparticles.com/.a/6a00d83455bc9369e201156f8deb7a970b-pi" target="_blank">crushing domination of the market share</a> of even its nearest competitor, Symbian, with about 35%. Go <a href="http://pragprog.com/titles/amiphd/iphone-sdk-development" target="_blank">grab a digital copy of Bill Dudney&#8217;s book, iPhone SDK Development</a>, and then read it on your <a href="http://www.lexcycle.com/" target="_blank">iPhone with the free Stanza .mobi reader</a>. Then, hop on a plane and meet me at <a href="http://www.nofluffjuststuff.com/conference/seattle/2009/04/sessions.html" target="_blank">#NFJS Seattle</a> this weekend for a talk on <a href="http://www.nofluffjuststuff.com/show_session_view.jsp?presentationId=13456&amp;showId=185" target="_blank">iPhone and Java Web Services</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2009/04/iphone-reaches-50-of-googles-mobile-traffic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RESTful Java Web Services must not return void to iPhone HTTP Services</title>
		<link>http://ambientideas.com/blog/index.php/2009/02/restful-java-web-services-must-not-return-void-to-iphone-http-services/</link>
		<comments>http://ambientideas.com/blog/index.php/2009/02/restful-java-web-services-must-not-return-void-to-iphone-http-services/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 07:57:13 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/index.php/2009/02/restful-java-web-services-must-not-return-void-to-iphone-http-services/</guid>
		<description><![CDATA[ After many sessions of debugging and even memory inspection not yielding fruit, I've finally discovered what caused my previous RESTful demo apps to have sporadic behavior, in addition to th e memory leak of the synchronous call .    Today's problem solving summary:   XCode projects  cannot have commas anywhere in the path  up to the location where they are stored or else you'll get an error message of:  ld: -filelist file not found: &#60;Project Path&#62;     All RESTful web services called via the  NSURLConnection APIs  must return a non-null payload.  ...  The observable failure is very quiet, which made it so hard to debug; every other web service call appears valid, but never actually makes a call across the wire. ]]></description>
			<content:encoded><![CDATA[<p>After many sessions of debugging and even memory inspection not yielding fruit, I&#8217;ve finally discovered what caused my previous RESTful demo apps to have sporadic behavior, in addition to th<a href="http://ambientideas.com/blog/index.php/2009/02/iphone-sdk-memory-leak-acknowledged/" target="_blank">e memory leak of the synchronous call</a>.</p>
<p>Today&#8217;s problem solving summary:</p>
<ol>
<li>XCode projects <a href="http://www.idevgames.com/forum/showthread.php?t=16284" target="_blank">cannot have commas anywhere in the path</a> up to the location where they are stored or else you&#8217;ll get an error message of:<br />
  <code>ld: -filelist file not found: &lt;Project Path&gt;<br /></code></li>
<li>All RESTful web services called via the <a href="http://developer.apple.com/documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html" target="_blank">NSURLConnection APIs</a> must return a non-null payload.
<p>  This bit me because <a href="http://github.com/matthewmccullough/iphoneandjavawebservices/blob/bb04e911cd6c7c247a92fea7e133589a3b53deba/JavaEndpoint-WSRESTful/src/com/ambientideas/iphone/ContestantDrawing.java" target="_blank">my &#8220;Add Contestant&#8221; function was adding the contestant and returning void</a>. I now return a string of &#8220;Success&#8221; to satisfy this requirement. The observable failure is very quiet, which made it so hard to debug; every other web service call appears valid, but never actually makes a call across the wire. This was <a href="http://en.wikipedia.org/wiki/Tcpdump" target="_blank">proven via TCPDump</a>. All the web service call callbacks are properly called in the Objective C side of the program. It just silently failed and passed back a null payload in the response data structure.</li>
</ol>
<p>All the c<a href="http://github.com/matthewmccullough/iphoneandjavawebservices/" target="_blank">ode for this project is available on GitHub</a> and will be updated with the results of the adjustments based on the above findings by tomorrow.</p>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2009/02/restful-java-web-services-must-not-return-void-to-iphone-http-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone &amp; Java Web Services Development, Mind Map Image</title>
		<link>http://ambientideas.com/blog/index.php/2009/02/iphone-java-web-services-development-mind-map-image/</link>
		<comments>http://ambientideas.com/blog/index.php/2009/02/iphone-java-web-services-development-mind-map-image/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 22:18:17 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/index.php/2009/02/iphone-java-web-services-development-mind-map-image/</guid>
		<description><![CDATA[ I'm working on some updated course materials for  iPhone &#38; Java Web Services training  and, by popular demand, am putting up the  Mind Map I created as the master reference  for the courseware. ...  Have fun with your iPhone exploring of some new topics you might see on this Mind Map, and let me know in the comments the parts that interest you the most...    Also,  here's a link to my iPhone tagged Delicious bookmarks.           iPhone Development Mind Map  by  Matthew J. ]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on some updated course materials for <a href="http://www.slideshare.net/programr/iphone-java-web-services-take-2-presentation" target="_blank">iPhone &amp; Java Web Services training</a> and, by popular demand, am putting up the <a href="http://www.flickr.com/photos/matthewandmadelaine/3279111059/" target="_blank">Mind Map I created as the master reference</a> for the courseware. The graphic is open source for the community to leverage and benefit from. Have fun with your iPhone exploring of some new topics you might see on this Mind Map, and let me know in the comments the parts that interest you the most&#8230;</p>
<p>Also, <a href="http://delicious.com/matthew.mccullough/iphone">here&#8217;s a link to my iPhone tagged Delicious bookmarks.</a></p>
<p><a title="iPhone Development MindMap by Matthew.McCullough" href="http://www.flickr.com/photos/matthewandmadelaine/3279111059/"><img src="http://farm4.static.flickr.com/3344/3279111059_067f97ed75.jpg" alt="iPhone Development MindMap" width="438" height="500" /></a></p>
<p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/us/"><img style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/us/88x31.png" alt="Creative Commons License" /></a><br />
<span>iPhone Development Mind Map</span> by <a rel="cc:attributionURL" href="www.ambientideas.com">Matthew J. McCullough</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/us/">Creative Commons Attribution-Share Alike 3.0 United States License</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2009/02/iphone-java-web-services-development-mind-map-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone SDK Memory Leak Acknowledged</title>
		<link>http://ambientideas.com/blog/index.php/2009/02/iphone-sdk-memory-leak-acknowledged/</link>
		<comments>http://ambientideas.com/blog/index.php/2009/02/iphone-sdk-memory-leak-acknowledged/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 17:18:21 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/index.php/2009/02/iphone-sdk-memory-leak-acknowledged/</guid>
		<description><![CDATA[I was pleased to see an email sitting in my inbox this morning from Apple replying to the memory leak of the iPhone SDK around the sendSynchronousRequest call. However, the body was a bit disappointing. Paraphrased: Hello Matthew, This is a follow up to Bug ID# 6503844. After further investigation it has been determined that [...]]]></description>
			<content:encoded><![CDATA[<p>I was pleased to see an email sitting in my inbox this morning from Apple <a href="http://ambientideas.com/blog/index.php/2009/01/iphone-sdk-cocoa-restful-web-services-memory-leak/" target="_blank">replying to the memory leak of the iPhone SDK around the sendSynchronousRequest call</a>. However, the body was a bit disappointing. Paraphrased:</p>
<blockquote>
<p>Hello Matthew,</p>
<p>  This is a follow up to Bug ID# 6503844. After further investigation it has been determined that this is a known issue, which is currently being investigated by engineering. This issue has been filed in our bug database under the original Bug ID# 6548496.</p>
<p>  Thank you for submitting this bug report. We truly appreciate your assistance in helping us discover and isolate bugs.</p>
</blockquote>
<p>The part that is odd is that the &#8220;Original Bug ID&#8221; is a larger number than mine. I was pretty sure that the <a href="http://radar.apple.com" target="_blank">bug IDs were sequential</a>. Perhaps not.</p>
<p>This particular call appears to have been leaking since I first jumped on board iPhone SDK development over a year ago. Let&#8217;s hope it becomes a priority in a soon-upcoming release of the software and SDK.</p>
<p>Still, on the whole, development on the iPhone is awesome, and if you are in <a href="http://www.nofluffjuststuff.com/conference/speaker/matthew_mccullough.html" target="_blank">Minneapolis, Seattle, or Denver, I&#8217;d be pleased to have you in the audience at the NFJS talks.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2009/02/iphone-sdk-memory-leak-acknowledged/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iPhone SDK, Cocoa &amp; RESTful Web Services, Memory Leak</title>
		<link>http://ambientideas.com/blog/index.php/2009/01/iphone-sdk-cocoa-restful-web-services-memory-leak/</link>
		<comments>http://ambientideas.com/blog/index.php/2009/01/iphone-sdk-cocoa-restful-web-services-memory-leak/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 22:34:00 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[MacOS]]></category>

		<guid isPermaLink="false">http://67.199.122.150/blog/index.php/2009/01/iphone-sdk-cocoa-restful-web-services-memory-leak/</guid>
		<description><![CDATA[Recently, I gave the second version of my iPhone and Java Web Services talk at the Boulder JUG. It was a great audience filled with interest and great questions. I promised them I would continue to load up my Delicious bookmarks with great iPhone links, and I&#8217;m doing just that. Pertinent to that talk, let&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I gave the second version of my iPhone and Java Web Services talk at the <a href="http://www.boulderjug.org" target="_blank">Boulder JUG</a>. It was a great audience filled with interest and great questions. I promised them I would continue to load up <a href="http://delicious.com/matthew.mccullough/iphone" target="_blank">my Delicious bookmarks with great iPhone links</a>, and I&#8217;m doing just that.</p>
<p>Pertinent to that talk, let&#8217;s quickly revisit that memory leak issue for NSURLConnection. In short, if you call sendSynchronousRequest, you get an internal memory leak of 128 bytes of a NSCFString object from inside the API.</p>
<p>To isolate this from my application coding skills via <a href="http://github.com/matthewmccullough/iphoneandjavawebservices/" target="_blank">the iPhone and Java Web Services demo code</a>, let&#8217;s look at an example called <a href="http://appsamuck.com/day15.html" target="_blank">ZipWeather from AppsAmuck</a>. Attach the profile to the ZipWeather, exactly as downloaded. Run it. Type a zip code. It leaks.</p>
<p>It appears that the <a href="http://raoli.com/2004/03/11/nsurlconnection-and-amazon-web-services/" target="_blank">NSURLConnection:sendSynchronousRequest() Flaking out, even for others, calling this API</a> to Amazon Web Services. I believe it may <a href="http://lists.apple.com/archives/Macnetworkprog/2008/Nov/msg00002.html" target="_blank">be the leak contributing to these hiccups</a>. I&#8217;ve <a href="http://lists.apple.com/archives/Macnetworkprog/2008/Nov/msg00013.html" target="_blank">tried turning off the cache, but it still leaks. I&#8217;ve tried the async version and it still leaks too</a>.</p>
<p>This <a href="http://developer.apple.com/webapps/articles/creatingrestfulclients.html" target="_blank">Apple article even suggests using this same API in the same way</a> that ZipWeather and my iPhone and Java Web Services app does.</p>
<p>In short, I&#8217;m submitting another <a href="https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/wa/signIn" target="_blank">Radar report to Apple</a> about this and hope it doesn&#8217;t get closed out as &#8220;Unable to reproduce&#8221; as <a href="http://lists.apple.com/archives/Macnetworkprog/2008/Nov/msg00006.html" target="_blank">João Pavão&#8217;s defect # 6179277</a> did. I&#8217;m able to reproduce it every time, with everyone&#8217;s sendSynchronousRequest calls.</p>
<p>I love the platform, but as you all know, one core API bug can really cause a lot of challenges until resolved. Let&#8217;s hope this one gets resolved very soon!</p>
<p>References:</p>
<ol>
<li><a href="http://www.iphonedevsdk.com/forum/iphone-sdk-development/2841-resolved-how-call-soap-service-3.html" target="_blank">SOAP Service Calls on the iPhone</a></li>
<li><a href="http://stackoverflow.com/questions/393803/accessing-a-webserver-from-a-cocoa-application" target="_blank">Stack Overflow thread on Cocoa Web Service Access</a></li>
<li><a href="http://developer.apple.com/iphone/" target="_blank">Apple iPhone Dev Center</a></li>
<li><a href="http://kosmaczewski.net/2008/03/26/playing-with-http-libraries/" target="_blank">A Blog about 5 languages calling web services, including Objective-C</a></li>
<li><a href="http://kosmaczewski.net/2008/10/18/rest-and-objective-c-again/" target="_blank">A continuation blog post specifically on Objective-C and REST</a></li>
<li><a href="http://kosmaczewski.net/projects/objective-c-rest-client/" target="_blank">And a download of a sample client in Objective-C that calls REST methods</a></li>
<li>UPDATE: <a href="http://www.iphonedevsdk.com/forum/iphone-sdk-development/3174-memory-leak.html#post41589" target="_blank">SeismicXML leak discussion</a></li>
<li>UPDATE: <a href="http://forums.macrumors.com/showthread.php?t=576680" target="_blank">MacRumors sendSynchronousRequest leak discussion</a></li>
<li>UPDATE: <a href="http://www.iphonedevsdk.com/forum/iphone-sdk-development/4910-nsxmlparser-rssparser-causing-memory-leak.html#post39064" target="_blank">NSXMLParser leaks too</a></li>
</ol>
<p>
<img src="http://farm4.static.flickr.com/3298/3201729569_ea16f4718d_o.jpg" width="794" height="578" alt="200901161532.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2009/01/iphone-sdk-cocoa-restful-web-services-memory-leak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ambient Ideas on the iPhone</title>
		<link>http://ambientideas.com/blog/index.php/2008/10/ambient-ideas-on-the-iphone/</link>
		<comments>http://ambientideas.com/blog/index.php/2008/10/ambient-ideas-on-the-iphone/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 06:03:00 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[DJUG]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[OpenSource]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/index.php/2008/10/ambient-ideas-on-the-iphone/</guid>
		<description><![CDATA[Ambient Ideas has officially been accepted into the iPhone Developer Program, meaning we can finally deploy beta software to actual handsets and completed products to the iTunes / iPhone Application Store. Keep an eye out for our upcoming presentations at DJUG on iPhone + Java Web Services integration.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ambientideas.com" target="_blank">Ambient Ideas</a> has officially been accepted into the <a href="http://developer.apple.com/" target="_blank">iPhone Developer Program</a>, meaning we can finally deploy beta software to actual handsets and completed products to the iTunes / iPhone Application Store. Keep an eye out for our upcoming presentations at <a href="http://www.denverjug.org" target="_blank">DJUG</a> on iPhone + Java Web Services integration.</p>
<p><img src="http://farm3.static.flickr.com/2177/2951152234_bdc725425f.jpg" width="480" height="164" alt="iPhone Developer Program - Ambient Ideas Accepted.png" /></p>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2008/10/ambient-ideas-on-the-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
