<?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>TimesToCome Mobile &#187; programming</title>
	<atom:link href="http://timestocomemobile.com/category/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://timestocomemobile.com</link>
	<description>iPhone Apps and Tips, tricks and tools for smart phones</description>
	<lastBuildDate>Mon, 28 Jun 2010 14:17:23 +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>OpenGLES on the iPhone</title>
		<link>http://timestocomemobile.com/2009/03/opengles-on-the-iphone.html</link>
		<comments>http://timestocomemobile.com/2009/03/opengles-on-the-iphone.html#comments</comments>
		<pubDate>Wed, 11 Mar 2009 19:02:55 +0000</pubDate>
		<dc:creator>timestocome</dc:creator>
				<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://timestocomemobile.com/?p=1175</guid>
		<description><![CDATA[There seems to be little to no information or examples on using OpenGL on the iPhone. I&#8217;m currently working through OpenGL(R) SuperBible: Comprehensive Tutorial and Reference (4th Edition) and translating the examples to work on the iPhone as I go. So far I&#8217;m partway through chapter 4. I&#8217;ll upload more examples as I complete them. [...]]]></description>
			<content:encoded><![CDATA[<p>There seems to be little to no information or examples on using OpenGL on the iPhone.  I&#8217;m currently working through <a href="http://www.amazon.com/gp/product/0321498828?ie=UTF8&amp;tag=tim01-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0321498828">OpenGL(R) SuperBible: Comprehensive Tutorial and Reference (4th Edition)</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=tim01-20&amp;l=as2&amp;o=1&amp;a=0321498828" border="0" alt="" width="1" height="1" /> and translating the examples to work on the iPhone as I go.</p>
<p>So far I&#8217;m partway through chapter 4.  I&#8217;ll upload more examples as I complete them.  Here is the source code for examples 2.1, 2.2, 2.3, 3.2, 3.4, 3.8, 4.1, 4.2 <a href="/files/opengl_iphone-1.tar.gz">iPhone OpenGLES example code, 2.1 through 4.2</a>,  <a href="/files/planets.tar.gz">4.3 Planets</a>, <a href="/files/4.7SphereWorld.tar.gz">4.7 SphereWorld</a>.</p>
<p>Also: <a href="/files/cube.tar.gz">Rotating cube</a></p>
<p>Also see:</p>
<p>For more iPhone programming tips and help see <a href="http://timestocomemobile.com/2008/08/resources-for-started-writing-iphone-programs.html">Resources for starting to write iPhone programs</a></p>
<p>I recently met Ashley Mills on Twitter who is also working through &#8216;The SuperBible&#8217; and converting examples to work on the iphone and <a href="http://www.ashley-mills.com/Home/Blog/Entries/2009/4/14_Open_GL_SuperBible_for_the_iPhone.html">posting the source for you.</a></p>
<p><a href="http://web.me.com/smaurice/AppleCoder/iPhone_OpenGL/Archive.html">OpenGL tutorials with examples for the iPhone</a></p>
]]></content:encoded>
			<wfw:commentRss>http://timestocomemobile.com/2009/03/opengles-on-the-iphone.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Beginning iPhone coding, the good, the bad and the ugly</title>
		<link>http://timestocomemobile.com/2008/08/resources-for-started-writing-iphone-programs.html</link>
		<comments>http://timestocomemobile.com/2008/08/resources-for-started-writing-iphone-programs.html#comments</comments>
		<pubDate>Wed, 27 Aug 2008 16:48:12 +0000</pubDate>
		<dc:creator>timestocome</dc:creator>
				<category><![CDATA[iPhone help]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://timestocomemobile.com/?p=333</guid>
		<description><![CDATA[The Basics It has been painful learning to write programs for the iPhone. My C++ is shamefully rusty and I&#8217;ve done everything from a command line for years. So I had to learn ObjC and how to develop code in XCode. The first thing you must do is sign up for the iPhone Developer Program. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The Basics</strong></p>
<p>It has been painful learning to write programs for the iPhone.  My C++ is shamefully rusty and I&#8217;ve done everything from a command line for years.  So I had to learn ObjC and how to develop code in XCode.</p>
<p>The first thing you must do is sign up for the <a href="http://developer.apple.com/iphone/index.action">iPhone Developer Program</a>.  There is a free program that will get you the developer kit, manuals, and source code.  Pay $99 and you can obtain the certificates that will let you load code onto your phone for testing or put it up on the iTunes store.</p>
<p>Once you&#8217;ve signed up you&#8217;ll need to download and install the developer kit onto your computer.</p>
<p>If you plan to sell applications on the App store fill out your bank and tax information since it takes a long time for the contract information to get approved. ( iPhone Dev Center -&gt; Program Portal -&gt; Distribution -&gt; App Store -&gt; Learn more -&gt; Go to iTunes Connect -&gt; Contracts, Tax &amp; Banking Information )</p>
<p><strong>The Good</strong></p>
<p>The pdf manuals you&#8217;ll find most useful for getting started in ObjC and XCode are:<br />
<a href="http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/chapter_1_section_1.html">iPhone OS Programming Guide</a><br />
<a href="http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/ObjectiveC/Introduction/chapter_1_section_1.html">ObjC</a></p>
<p>Then move onto both of these pdfs which walk you through simple projects:<br />
<a href="http://developer.apple.com/documentation/Cocoa/Conceptual/ObjCTutorial/ObjCTutorial.pdf">ObjCTutorial.pdf</a><br />
<a href="http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhone101/iPhone101.pdf">iPhone101.pdf</a></p>
<p>Then download all the sample code, you use it often.</p>
<p>(* Note: you must sign up for the developer program to download these manuals and code from Apple. )</p>
<p>The <a href="http://icodeblog.com/">icodeblog</a> has several code examples and it walks you through in very tiny steps.</p>
<p>Another very useful blog with well explained examples and source code is <a href="http://miketeo.net/wp/index.php/category/internet/apple">MikeTeo</a>.</p>
<p>&#8216;<a href="http://www.amazon.com/gp/product/0672325861?ie=UTF8&amp;tag=tim01-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0672325861">Programming in Objective-C (Developer&#8217;s Library)</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=tim01-20&amp;l=as2&amp;o=1&amp;a=0672325861" border="0" alt="" width="1" height="1" />&#8216;is a great place to start if you are new to ObjC.</p>
<p>&#8216;<a href="http://www.amazon.com/gp/product/0321503619?ie=UTF8&amp;tag=tim01-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0321503619">Cocoa(R) Programming for Mac(R) OS X (3rd Edition)</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=tim01-20&amp;l=as2&amp;o=1&amp;a=0321503619" border="0" alt="" width="1" height="1" />&#8216; is good for learning Cocoa if you know ObjC but it is written for desktop application, not iPhone applications.</p>
<p>If you have written code for cell phones before you&#8217;ll find much of the interface stuff is familiar.  It&#8217;s just a matter of getting the hang of the Apple drag and drop GUI.  You&#8217;ll probably want to start with <a href="http://www.amazon.com/gp/product/1430216263?ie=UTF8&amp;tag=tim01-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1430216263">Beginning iPhone Development: Exploring the iPhone SDK</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=tim01-20&amp;l=as2&amp;o=1&amp;a=1430216263" border="0" alt="" width="1" height="1" /> if you already know ObJC and Cocoa.  I&#8217;m only on chapter 11but I can see already it&#8217;ll be a well used, well worn book. (<a href="http://iphonedevbook.com/forum/">Forums for book and the example code for the book</a> )</p>
<p><a href="http://iphonedevcentral.org/home.php">iPhone Dev Central</a> has forums and video tutorials.  I&#8217;m not big on video tutorials so I haven&#8217;t tried them, but they come highly recommended.</p>
<p>If you want to write games you&#8217;ll have to brush up on or learn OpenGL and get the basics of that down. For a really cool example of 3d graphics on the iPhone check out <a href="http://www.davidoreilly.com/blog/2008/08/ihologram/">iHologram</a></p>
<p>If you are totally new to programming you&#8217;ll want to <a href="http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html#DownloadingTheBook">download the free pdf </a> or buy <a href="http://www.amazon.com/gp/product/0139798099?ie=UTF8&amp;tag=tim01-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0139798099">Thinking in C++: Introduction to Standard C++, Volume One (2nd Edition)</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=tim01-20&amp;l=as2&amp;o=1&amp;a=0139798099" border="0" alt="" width="1" height="1" /> and dig into code get your basic stuff down first.</p>
<p>Also see <a href="http://boga.wordpress.com/2008/07/16/debugging-ipod-provision-profilescertificates/">Miklos Fazekas&#8217;s Blog entry on Debugging iPhone provision profiles/certificates</a>.  It was a great help to me when I got trapped in certificate hell.</p>
<p>Another place you might get stuck is changing the name of your project in XCode, <a href="http://www.meandmark.com/xcodetips.html">Me and Mark&#8217;s Xcode Tools Tips</a> has some help for that.</p>
<p><a href="http://www.stanford.edu/class/cs193p/cgi-bin/index.php">Stanford iPhone class</a> is now putting the whole class online not just the slides.  I watched the intro lecture and already learned some new tricks.</p>
<p><strong>The Bad</strong></p>
<p><a href="http://www.amazon.com/gp/product/0596518552?ie=UTF8&amp;tag=tim01-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0596518552">&#8216;iPhone Open Application Development: Write Native Objective-C Applications for the iPhone</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=tim01-20&amp;l=as2&amp;o=1&amp;a=0596518552" border="0" alt="" width="1" height="1" />&#8216; The &#8216;iPhone Open Application Development&#8217; book looks to have some interesting information so far I haven&#8217;t found a use for any thing in it.</p>
<p><strong>The Ugly</strong></p>
<p>Do not purchase <a href="http://www.amazon.com/gp/product/0321555457?ie=UTF8&amp;tag=tim01-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0321555457">The iPhone Developer&#8217;s Cookbook: Building Applications with the iPhone SDK (Developer&#8217;s Library)</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=tim01-20&amp;l=as2&amp;o=1&amp;a=0321555457" border="0" alt="" width="1" height="1" /> it was a total waste of money and it&#8217;s not even large enough to make a good door stop.</p>
<p>When you are debugging and testing applications on your iPhone the gdb runs the existing application if it exists, not the new, leading to some embarrassing got-yas.  Before testing, delete existing copies of the application from your phone.</p>
<p>There is little to no information or <a href="http://timestocomemobile.com/2009/03/opengles-on-the-iphone.html">examples using OpenGL on the iPhone</a> so I added a few to get you started.</p>
<p>Other useful things:<br />
<a href="http://cocoanotes.wordpress.com/2008/10/29/how-to-rotate-a-uitabbarcontroller/">How to rotate a UITabBarController</a></p>
]]></content:encoded>
			<wfw:commentRss>http://timestocomemobile.com/2008/08/resources-for-started-writing-iphone-programs.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone SDK</title>
		<link>http://timestocomemobile.com/2008/03/iphone-sdk.html</link>
		<comments>http://timestocomemobile.com/2008/03/iphone-sdk.html#comments</comments>
		<pubDate>Fri, 07 Mar 2008 00:12:25 +0000</pubDate>
		<dc:creator>timestocome</dc:creator>
				<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://timestocome.org/mobile/2008/03/iphone-sdk.html</guid>
		<description><![CDATA[iPhone SDK can be downloaded from Apple now. There is a free version you can test and play with. It is $99 to become a registered developer and get a key so you can create applications people will be able to download from the iPhone application store beginning in June. For $299 you can obtain [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://developer.apple.com/iphone">iPhone SDK</a> can be downloaded from Apple now.  There is a free version you can test and play with.  It is $99 to become a registered developer and get a key so you can create applications people will be able to download from the iPhone application store beginning in June.  For $299 you can obtain an enterprise license which allows you to develop in-house applications.</p>
<p>More details on the 30%Apple/70% developer split and tons of examples, demos, how tos etc are available on the Apple developer site.</p>
]]></content:encoded>
			<wfw:commentRss>http://timestocomemobile.com/2008/03/iphone-sdk.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google phone developer kit released for all platforms</title>
		<link>http://timestocomemobile.com/2007/12/google-phone-developer-kit.html</link>
		<comments>http://timestocomemobile.com/2007/12/google-phone-developer-kit.html#comments</comments>
		<pubDate>Mon, 17 Dec 2007 12:00:54 +0000</pubDate>
		<dc:creator>timestocome</dc:creator>
				<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://timestocome.org/mobile/2007/12/google-phone-developer-kit.html</guid>
		<description><![CDATA[We are all looking forward to a hackable phone for which we can write applications. This toolkit allows you to write Java applications for the GPhone. The Android Developer kit is available for Windows, Linux and OSX. There is also documentation and other useful things at that site. There are many HTC phones rumored to [...]]]></description>
			<content:encoded><![CDATA[<p>We are all looking forward to a hackable phone for which we can write applications.  This toolkit allows you to write Java applications for the GPhone.</p>
<p>The <a href="http://code.google.com/android/documentation.html">Android Developer kit</a> is available for Windows, Linux and OSX.  There is also documentation and other useful things at that site.</p>
<p>There are many HTC phones rumored to be arriving with Android in 2008.  HTC has really been doing a nice job in the smart phone market lately.</p>
<p>More information can be found at <a href="http://www.openhandsetalliance.com/index.html">The Open Handset Alliance</a>.  There is also a very quiet beginning of a <a href="http://www.forum.googleandroid.info/">Forum on developing and using Android</a></p>
<p>And just to make things interesting <a href="http://code.google.com/android/adc.html">Google is offering $10 million in prizes to developers</a></p>
<p><a href="http://www.engadget.com/2007/12/19/android-dsk-frustrating-developers-due-to-bugs-lack-of-document/">However many developers are reporting problems</a></p>
<p>It is strongly rumored that Android will be released Fall 2008 on an HTC handset.</p>
]]></content:encoded>
			<wfw:commentRss>http://timestocomemobile.com/2007/12/google-phone-developer-kit.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
