<?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>dev.enekoalonso.com &#187; objective-c</title>
	<atom:link href="http://dev.enekoalonso.com/tag/objective-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.enekoalonso.com</link>
	<description>having fun with code</description>
	<lastBuildDate>Thu, 02 Sep 2010 13:56:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Titanium Developer: love and hate (Part II)</title>
		<link>http://dev.enekoalonso.com/2010/08/18/titanium-developer-love-and-hate-part-ii/</link>
		<comments>http://dev.enekoalonso.com/2010/08/18/titanium-developer-love-and-hate-part-ii/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 19:58:52 +0000</pubDate>
		<dc:creator>Eneko Alonso</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[appcelerator]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[compiled]]></category>
		<category><![CDATA[compiler]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[generated]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[native]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[objc]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[scrollview]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[titanium]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=644</guid>
		<description><![CDATA[For the last four weeks and despite other projects and deadlines, I&#8217;ve been working on a mobile app for iPhone and Android, using Titanium Developer from Appcelerator. I still hate it. And I still love it. More to come&#8230; Related Posts:July 30, 2010 -- Titanium Developer: love and hate (3)August 3, 2010 -- List of [...]]]></description>
			<content:encoded><![CDATA[<p>For the last <a href="http://dev.enekoalonso.com/2010/07/30/titanium-developer-love-and-hate/">four weeks</a> and despite other projects and deadlines, I&#8217;ve been working on a mobile app for iPhone and Android, using Titanium Developer from <a href="http://appcelerator.com">Appcelerator</a>.</p>
<p>I still hate it. And I still love it.</p>
<p>More to come&#8230;</p>
<h3  class="related_post_title">Related Posts:</h3><ul class="related_post"><li>July 30, 2010 -- <a href="http://dev.enekoalonso.com/2010/07/30/titanium-developer-love-and-hate/" title="Titanium Developer: love and hate">Titanium Developer: love and hate</a> (3)</li><li>August 3, 2010 -- <a href="http://dev.enekoalonso.com/2010/08/03/iphone-sdk-old-versions/" title="List of iPhone SDK &#038; XCode packages">List of iPhone SDK &#038; XCode packages</a> (0)</li><li>November 28, 2008 -- <a href="http://dev.enekoalonso.com/2008/11/28/mygameoflife-source-code/" title="MyGameOfLife source code">MyGameOfLife source code</a> (0)</li><li>July 26, 2009 -- <a href="http://dev.enekoalonso.com/2009/07/26/placing-a-uiactivityindicartorview-on-a-uibarbuttonitem/" title="Placing a UIActivityIndicartorView on a UIBarButtonItem">Placing a UIActivityIndicartorView on a UIBarButtonItem</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://dev.enekoalonso.com/2010/08/18/titanium-developer-love-and-hate-part-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trimming strings in Objective-C / Cocoa</title>
		<link>http://dev.enekoalonso.com/2009/07/30/trimming-strings-objective-c-cocoa/</link>
		<comments>http://dev.enekoalonso.com/2009/07/30/trimming-strings-objective-c-cocoa/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 16:58:49 +0000</pubDate>
		<dc:creator>Eneko Alonso</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[objective-c]]></category>

		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=319</guid>
		<description><![CDATA[returnString = &#160;&#91;returnString stringByTrimmingCharactersInSet: &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#91;NSCharacterSet whitespaceAndNewlineCharacterSet&#93;&#93;; Very intuitive, huh? Related Posts:August 18, 2010 -- Titanium Developer: love and hate (Part II) (0)July 26, 2009 -- Placing a UIActivityIndicartorView on a UIBarButtonItem (0)November 28, 2008 -- MyGameOfLife source code (0)]]></description>
			<content:encoded><![CDATA[<div class="geshi no objc">
<ol>
<li class="li1">
<div class="de1">returnString <span class="sy0">=</span> &nbsp;<span class="br0">&#91;</span>returnString stringByTrimmingCharactersInSet<span class="sy0">:</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#91;</span><span class="kw5">NSCharacterSet</span> whitespaceAndNewlineCharacterSet<span class="br0">&#93;</span><span class="br0">&#93;</span>;</div>
</li>
</ol>
</div>
<p>Very intuitive, huh?</p>
<h3  class="related_post_title">Related Posts:</h3><ul class="related_post"><li>August 18, 2010 -- <a href="http://dev.enekoalonso.com/2010/08/18/titanium-developer-love-and-hate-part-ii/" title="Titanium Developer: love and hate (Part II)">Titanium Developer: love and hate (Part II)</a> (0)</li><li>July 26, 2009 -- <a href="http://dev.enekoalonso.com/2009/07/26/placing-a-uiactivityindicartorview-on-a-uibarbuttonitem/" title="Placing a UIActivityIndicartorView on a UIBarButtonItem">Placing a UIActivityIndicartorView on a UIBarButtonItem</a> (0)</li><li>November 28, 2008 -- <a href="http://dev.enekoalonso.com/2008/11/28/mygameoflife-source-code/" title="MyGameOfLife source code">MyGameOfLife source code</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://dev.enekoalonso.com/2009/07/30/trimming-strings-objective-c-cocoa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Placing a UIActivityIndicartorView on a UIBarButtonItem</title>
		<link>http://dev.enekoalonso.com/2009/07/26/placing-a-uiactivityindicartorview-on-a-uibarbuttonitem/</link>
		<comments>http://dev.enekoalonso.com/2009/07/26/placing-a-uiactivityindicartorview-on-a-uibarbuttonitem/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 21:36:39 +0000</pubDate>
		<dc:creator>Eneko Alonso</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[reload]]></category>
		<category><![CDATA[UIActivityIndicatorView]]></category>

		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=347</guid>
		<description><![CDATA[Have you seen those iPhone apps with a reload button that switches itself to an animated activity indicator while the reload action is being performed? Here is how to do that. Place this code on your ViewController: - &#40;void&#41;showReloadButton &#123; &#160; UIBarButtonItem *refreshItem = &#91;&#91;UIBarButtonItem alloc&#93; &#160; &#160; initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Have you seen those iPhone apps with a reload button that switches itself to an animated activity indicator while the reload action is being performed? </p>
<p>Here is how to do that. Place this code on your ViewController:</p>
<div class="geshi no objc">
<ol>
<li class="li1">
<div class="de1"><span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>showReloadButton <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; UIBarButtonItem <span class="sy0">*</span>refreshItem <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>UIBarButtonItem alloc<span class="br0">&#93;</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; initWithBarButtonSystemItem<span class="sy0">:</span>UIBarButtonSystemItemRefresh </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; target<span class="sy0">:</span>self</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; action<span class="sy0">:</span><span class="kw4">@selector</span><span class="br0">&#40;</span>reload<span class="sy0">:</span><span class="br0">&#41;</span><span class="br0">&#93;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; self.navigationItem.rightBarButtonItem <span class="sy0">=</span> refreshItem;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="br0">&#91;</span>refreshItem release<span class="br0">&#93;</span>; </div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>showActivityIndicator <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; UIActivityIndicatorView <span class="sy0">*</span>activityIndicator <span class="sy0">=</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="br0">&#91;</span><span class="br0">&#91;</span>UIActivityIndicatorView alloc<span class="br0">&#93;</span> initWithFrame<span class="sy0">:</span>CGRectMake<span class="br0">&#40;</span><span class="nu0">0</span>, <span class="nu0">0</span>, <span class="nu0">20</span>, <span class="nu0">20</span><span class="br0">&#41;</span><span class="br0">&#93;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="br0">&#91;</span>activityIndicator startAnimating<span class="br0">&#93;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; UIBarButtonItem <span class="sy0">*</span>activityItem <span class="sy0">=</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="br0">&#91;</span><span class="br0">&#91;</span>UIBarButtonItem alloc<span class="br0">&#93;</span> initWithCustomView<span class="sy0">:</span>activityIndicator<span class="br0">&#93;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="br0">&#91;</span>activityIndicator release<span class="br0">&#93;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; self.navigationItem.rightBarButtonItem <span class="sy0">=</span> activityItem;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="br0">&#91;</span>activityItem release<span class="br0">&#93;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="sy0">-</span> <span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span> reload <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="co1">// Do your reload stuff</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>Seen <a href="http://www.leegillen.com/Public/Blog/Entries/2008/10/26_How_to_use_a_custom_UIBarButtonItem_to_display_a_UIActivityIndicatorView.html">here</a>.</p>
<h3  class="related_post_title">Related Posts:</h3><ul class="related_post"><li>August 18, 2010 -- <a href="http://dev.enekoalonso.com/2010/08/18/titanium-developer-love-and-hate-part-ii/" title="Titanium Developer: love and hate (Part II)">Titanium Developer: love and hate (Part II)</a> (0)</li><li>July 30, 2009 -- <a href="http://dev.enekoalonso.com/2009/07/30/trimming-strings-objective-c-cocoa/" title="Trimming strings in Objective-C / Cocoa">Trimming strings in Objective-C / Cocoa</a> (0)</li><li>November 28, 2008 -- <a href="http://dev.enekoalonso.com/2008/11/28/mygameoflife-source-code/" title="MyGameOfLife source code">MyGameOfLife source code</a> (0)</li><li>August 22, 2010 -- <a href="http://dev.enekoalonso.com/2010/08/22/list-of-iphone-ipsw-firmware-files/" title="List of iPhone ipsw firmware files (yes, downgrading from iOS 4.0.1 to 3.1.3)">List of iPhone ipsw firmware files (yes, downgrading from iOS 4.0.1 to 3.1.3)</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://dev.enekoalonso.com/2009/07/26/placing-a-uiactivityindicartorview-on-a-uibarbuttonitem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MyGameOfLife source code</title>
		<link>http://dev.enekoalonso.com/2008/11/28/mygameoflife-source-code/</link>
		<comments>http://dev.enekoalonso.com/2008/11/28/mygameoflife-source-code/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 06:11:25 +0000</pubDate>
		<dc:creator>Eneko Alonso</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[conway]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[gameoflife]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[googlecode]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://dev.enekoalonso.com/?p=40</guid>
		<description><![CDATA[Almost a year ago I was learning some Cocoa and I decided it will be fun to implement a Cocoa based version of Conway&#8217;s Game of Life. Back then I didn&#8217;t publish the source code, not for any special reason. So now I have just uploaded it to Google Code. It&#8217;s not fully functional, since [...]]]></description>
			<content:encoded><![CDATA[<p>Almost a year ago I was learning some Cocoa and I decided it will be fun to implement a Cocoa based version of <a href="http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life">Conway&#8217;s Game of Life</a>. Back then I didn&#8217;t publish the source code, not for any special reason. So now I have just uploaded it to Google Code. It&#8217;s not fully functional, since the last time I worked on it I was creating an structure editor. My idea was to create a library of structures, with drag&#038;drop and import/export options.</p>
<p>If you are interested on working on the project, let me know :)</p>
<p><a href="http://code.google.com/p/my-gameoflife">http://code.google.com/p/my-gameoflife</a></p>
<p><a href="http://www.flickr.com/photos/eneko/2142616139/" title="My Game of Life by Eneko Alonso, on Flickr"><img src="http://farm3.static.flickr.com/2104/2142616139_eed0282fca_o.png" width="500" height="359" alt="My Game of Life" /></a></p>
<h3  class="related_post_title">Related Posts:</h3><ul class="related_post"><li>August 18, 2010 -- <a href="http://dev.enekoalonso.com/2010/08/18/titanium-developer-love-and-hate-part-ii/" title="Titanium Developer: love and hate (Part II)">Titanium Developer: love and hate (Part II)</a> (0)</li><li>August 27, 2010 -- <a href="http://dev.enekoalonso.com/2010/08/27/link-whirlpool-js/" title="Link: Whirlpool JS">Link: Whirlpool JS</a> (0)</li><li>July 30, 2010 -- <a href="http://dev.enekoalonso.com/2010/07/30/creating-qr-codes-with-google-charts-api/" title="Creating QR Codes with Google Charts API">Creating QR Codes with Google Charts API</a> (1)</li><li>May 3, 2010 -- <a href="http://dev.enekoalonso.com/2010/05/03/playing-with-websockets/" title="Playing with WebSockets">Playing with WebSockets</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://dev.enekoalonso.com/2008/11/28/mygameoflife-source-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
