<?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>Raphael Wichmann &#187; video</title>
	<atom:link href="http://www.rwichmann.com/tag/video/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rwichmann.com</link>
	<description>ActionScript and other computer related stuff.</description>
	<lastBuildDate>Tue, 30 Aug 2011 10:58:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Beginning iPhone Development</title>
		<link>http://www.rwichmann.com/2009/03/05/beginning-iphone-development/</link>
		<comments>http://www.rwichmann.com/2009/03/05/beginning-iphone-development/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 18:22:51 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.rwichmann.com/?p=104</guid>
		<description><![CDATA[The title says what I am doing and it&#8217;s also the title of my current favourite book. I bought two books. One is for diving into Objective-C and the other one is about the iPhone SDK. It worked out to be a good idea having two books. One for Objective-C basics and the other one [...]]]></description>
			<content:encoded><![CDATA[<p>The title says what I am doing and it&#8217;s also the title of my current favourite book.</p>
<p>I bought two books. One is for diving into Objective-C and the other one is about the iPhone SDK. It worked out to be a good idea having two books. One for Objective-C basics and the other one more iPhone specific. Although the iPhone book is my favourite book, you need to have basic knowledge about Objective-C to understand what they are doing there.</p>
<p>This book: <a href="http://www.amazon.com/Beginning-iPhone-Development-Exploring-SDK/dp/1430216263/ref=pd_bbs_sr_1" target="_blank">Beginning iPhone Development</a> is really good. Every chapter contains a Step by Step tutorial on a specific theme. It&#8217;s really fun reading and everything is really easy explained.</p>
<p>The second book called <a href="http://www.amazon.com/Programming-Objective-C-Developers-Library-Stephen/dp/0672325861/ref=sr_1_4" target="_blank">Programming in Objective-C</a> is ok but it&#8217;s nothing special. It&#8217;s not bad though. It&#8217;s just a usual book about a programming language. If you consider buying this book better buy this one: &#8220;Programming in Objective-C 2.0&#8243;. Or a completely different one.</p>
<p>So I started reading the Objective-C book. If you are familiar with ActionScript everything seems different to you. How you declare variables, call functions, handle events and a lot more. Tracing! So simple in ActionScript. And a good example for a comparison:</p>
<div class="codecolorer-container actionscript3 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;myNumber: &quot;</span> <span style="color: #000066; font-weight: bold;">+</span> myNumber<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></div></div>
<div class="codecolorer-container objc default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="objc codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">NSLog<span style="color: #002200;">&#40;</span><span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><span style="color: #400080;">NSString</span> alloc<span style="color: #002200;">&#93;</span><br />
&nbsp; &nbsp; initWithFormat<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;myNumber: %f&quot;</span>, myNumber<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#41;</span>;</div></div>
<p>What is that?! Some things are really strange. And I&#8217;m not into it that much that I could say: &#8220;Ok, it is a little bit odd but actually it is better because &#8230; &#8220;. So I just accepted it <img src='http://www.rwichmann.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Even if it is a little bit painful for me leaving the comfortable ActionScript enviroment it is a lot fun starting with iPhone programming. You simply have access to data you normally don&#8217;t have in ActionScript. Think of things like multitouch, accelerometer, GPS location, access to the adressbook of the user and a lot more.</p>
<p>So I started developing a really simple game. I think it is always good if you set yourself a goal to achieve. My goal is to develop a simple football game. The concept is pretty easy. You kick a ball and have to keep in the air. The longer you keep the ball in the air the higher the score. The score is to be saved in a database later.</p>
<p>I read the iPhone book and Keith Peters <a href="http://www.bit-101.com/blog/?p=1784" target="_blank">tutorial</a> about gravity on the iPhone. And i watched some videos on this site: <a href="http://www.iphonedevcentral.org/" target="_blank">www.iphonedevcentral.org</a>.</p>
<p>This is the current state. Unfortunately it doesn&#8217;t run that smooth on the iPhone. The difference between the X-Code-Simulator and the runtime on the iPhone is pretty big. I guess I should do the movement with openGL. Another language I don&#8217;t know. But the book is already ordered <img src='http://www.rwichmann.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Have a look for yourself:</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_videoplayer_965673121"
			class="flashmovie"
			width="455"
			height="256">
	<param name="movie" value="/swf/videoplayer.swf" />
	<param name="flashvars" value="path=../video/beginningiphone.mp4&#038&amp;normalWidth=455&#038&amp;normalHeight=256&#038&amp;maxWidth=1024&#038&amp;maxHeight=576" />
	<param name="allowfullscreen" value="true" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/swf/videoplayer.swf"
			name="fm_videoplayer_965673121"
			width="455"
			height="256">
		<param name="flashvars" value="path=../video/beginningiphone.mp4&#038&amp;normalWidth=455&#038&amp;normalHeight=256&#038&amp;maxWidth=1024&#038&amp;maxHeight=576" />
		<param name="allowfullscreen" value="true" />
	<!--<![endif]-->
		<br />
<a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a><br />

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
]]></content:encoded>
			<wfw:commentRss>http://www.rwichmann.com/2009/03/05/beginning-iphone-development/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

