<?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>dispatchEvent() Blog™ &#187; iphone</title>
	<atom:link href="http://dispatchevent.org/category/iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://dispatchevent.org</link>
	<description>Collective thoughts on the Flash Platform, iOS, Unity, and any other technology we use.</description>
	<lastBuildDate>Tue, 17 Aug 2010 08:15:35 +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>Speaking Wednesday night at the LA Flex User Group</title>
		<link>http://dispatchevent.org/mims/speaking-wednesday-night-at-the-la-flex-user-group/</link>
		<comments>http://dispatchevent.org/mims/speaking-wednesday-night-at-the-la-flex-user-group/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 20:45:25 +0000</pubDate>
		<dc:creator>Mims H Wright</dc:creator>
				<category><![CDATA[Conferences and User Groups]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[degrafa]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[gumbo]]></category>
		<category><![CDATA[meetup]]></category>
		<category><![CDATA[skinning]]></category>
		<category><![CDATA[spark]]></category>
		<category><![CDATA[speaking]]></category>
		<category><![CDATA[user group]]></category>

		<guid isPermaLink="false">http://dispatchevent.org/mims/speaking-wednesday-night-at-the-la-flex-user-group/</guid>
		<description><![CDATA[I&#8217;m going to be speaking at the LA Flex User Group in Santa Monica on Wednesday, March 17, about Skinning in Flex 4. I know it&#8217;s late notice but come on down if you can make it!]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.meetup.com/laflex/"><img class="size-full wp-image-841 alignright" title="laflex_logo" src="http://dispatchevent.org/wp-content/uploads/2010/03/laflex_logo.png" alt="" width="100" height="100" /></a><br />
I&#8217;m going to be speaking at the <a href="http://www.meetup.com/laflex/">LA Flex User Group</a> in Santa Monica on Wednesday, March 17, about Skinning in Flex 4. I know it&#8217;s late notice but come on down if you can make it!</p>
]]></content:encoded>
			<wfw:commentRss>http://dispatchevent.org/mims/speaking-wednesday-night-at-the-la-flex-user-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone Project Keeps Appearing in iPad Simulator?</title>
		<link>http://dispatchevent.org/roger/iphone-project-keeps-appearing-in-ipad-simulator/</link>
		<comments>http://dispatchevent.org/roger/iphone-project-keeps-appearing-in-ipad-simulator/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 08:14:07 +0000</pubDate>
		<dc:creator>Roger Braunstein</dc:creator>
				<category><![CDATA[iphone]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://dispatchevent.org/?p=821</guid>
		<description><![CDATA[Hey guys, this is a quick thing I&#8217;ve run into while using the beta of the iPhone OS 3.2 SDK. If you create an iPhone project for iPhone OS 3.2, you might notice that every time you launch it, it &#8230; <a href="http://dispatchevent.org/roger/iphone-project-keeps-appearing-in-ipad-simulator/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hey guys, this is a quick thing I&#8217;ve run into while using the beta of the iPhone OS 3.2 SDK. If you create an iPhone project for iPhone OS 3.2, you might notice that every time you launch it, it appears in the iPad simulator instead of the iPhone simulator.</p>
<p>If this happens to you, it&#8217;s because 3.2 isn&#8217;t available on the iPhone yet, so regardless of your active configuration, the project has to run on iPad. For now, to fix this, you&#8217;ll want to roll your project back to iPhone OS 3.1.3 or earlier. Just go into your project info &rarr; Build Settings and set the Base SDK to iPhone Device 3.1.3 (or what have you). You&#8217;ll also want to make sure that SDK version is active in the Active SDK run settings.</p>
<p>I know this little fix is only going to be necessary for a short while, but if you were one of the 14 people wondering why this happens, there you go.</p>
]]></content:encoded>
			<wfw:commentRss>http://dispatchevent.org/roger/iphone-project-keeps-appearing-in-ipad-simulator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learn Yourself to Debug Good With XCode and Instruments</title>
		<link>http://dispatchevent.org/roger/learn-yourself-to-debug-good-with-xcode-and-instruments/</link>
		<comments>http://dispatchevent.org/roger/learn-yourself-to-debug-good-with-xcode-and-instruments/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 09:32:49 +0000</pubDate>
		<dc:creator>Roger Braunstein</dc:creator>
				<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://dispatchevent.org/?p=812</guid>
		<description><![CDATA[Hi! (Here Roger pretends it hasn&#8217;t been 100 years since his last posting and moves on swiftly.) So if you&#8217;ve been learning or practicing iPhone development, you might agree with me that there&#8217;s one topic that inspires a little FUD &#8230; <a href="http://dispatchevent.org/roger/learn-yourself-to-debug-good-with-xcode-and-instruments/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hi! (Here Roger pretends it hasn&#8217;t been 100 years since his last posting and moves on swiftly.) So if you&#8217;ve been learning or practicing iPhone development, you might agree with me that there&#8217;s one topic that inspires a little FUD and that is covered a little sparsely by books — debugging. Between scary messages like <code>EXC_BAD_ACCESS</code>, uncaught exceptions deep in the guts of thorny disassembled framework code, crashes that don&#8217;t break into the debugger, and the direct interface to the gdb console, debugging in XCode can have a learning curve even if you know your way around a debugger. I&#8217;ve seen too many good men use <code>NSLog()</code> to debug, and it bugs me.</p>
<p>So here&#8217;s a few screencasts I found around town on debugging, that I wanted to share. Do yourself a favor and watch them.</p>
<p>First up, a series of two screencasts by Jeff LaMarche on debugging basics. I&#8217;ll reiterate, even if it starts out basic, you might learn something since it seems everyone uses the debugger differently. <a href="http://iphonedevelopment.blogspot.com/2009/03/debugging.html">Part One</a>, <a href="http://iphonedevelopment.blogspot.com/2009/03/debugging-part-2.html">Part Two</a>. Key takeaways:</p>
<ul>
<li>Dude. Just drag the breakpoint out of the gutter to remove it. I&#8217;ve been right-clicking the damn thing my whole life. Sighhh&#8230;.</li>
<li>XCode breakpoints are heckuv powerful. Use symbolic breakpoints, conditional breakpoints, and breakpoint actions wisely.</li>
<li>Single most important thing: Add a symbolic breakpoint on <code>objc_exception_throw</code>. Newer XCode builds have a menu item for this in Run&rarr;Stop on Objective-C Exceptions.</li>
</ul>
<p>Next, a screencast on debugging <code>EXC_BAD_ACCESS</code>, which is raised when you access an object that has vanished into thin air, most likely because you over-released it. <a href="http://www.markj.net/iphone-memory-debug-nszombie/">This screencast</a> from Mark Johnson shows you how to debug these errors with Instruments and NSZombies. You&#8217;ll see how to generate a complete history of any object, from allocation and including every release or retain. You&#8217;ll also see how to find the objects of interest by enabling zombies (you know, after your object is completely released and freed it sticks around, undead). For those of you who see Instruments and aren&#8217;t quite sure what to do with it, just watching Mark use it is helpful. My takeaway was that it&#8217;s much easier and nicer to use Instruments than to <a href="http://www.cocoadev.com/index.pl?NSZombieEnabled">enable zombies by hand</a>.</p>
<p>Finally, <a href="http://www.mobileorchard.com/find-iphone-memory-leaks-a-leaks-tool-tutorial/">here&#8217;s a nice tutorial</a> by Owen Goss on using Instruments to find memory leaks. It&#8217;s also another good scenario which you can follow to help get your head around Instruments.</p>
<p>Bonus info: XCode 3.2 and later has the Clang Static Analyzer built in. This is a sweet tool that analyzes your code without running it (thus the <em>static</em> part). Just run Build&rarr;Build and Analyze and you&#8217;ll get a brutal report of how and where Clang thinks your code is totally sketchy. <a href="http://iphonedevelopertips.com/xcode/static-code-analysis-clang-and-xcode-3-2.html">John Muchow shows you how here.</a></p>
<p>Anything that still baffles you about XCode/iPhone debugging? Care to add any other beginner debugging help? Hit the comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://dispatchevent.org/roger/learn-yourself-to-debug-good-with-xcode-and-instruments/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
