<?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>Adam Teale: News From Above &#187; objective-c</title>
	<atom:link href="http://adamteale.com/category/computer-stuff/objective-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://adamteale.com</link>
	<description>ramblings of a 2 metre man</description>
	<lastBuildDate>Thu, 17 May 2012 17:16:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>NSSlider, Mouse Down &amp; NSThread</title>
		<link>http://adamteale.com/1719/</link>
		<comments>http://adamteale.com/1719/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 20:01:27 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[objective-c]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[nsslider]]></category>
		<category><![CDATA[nsthread]]></category>
		<category><![CDATA[nstimer]]></category>
		<category><![CDATA[objc]]></category>

		<guid isPermaLink="false">http://adamteale.com/?p=1719</guid>
		<description><![CDATA[I hope the following makes some sense and is of some use to newbie Mac Developers out there. For the past week I have been working on Sub It to try get it ready for first release on the Mac &#8230; <a href="http://adamteale.com/1719/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I hope the following makes some sense and is of some use to newbie Mac Developers out there.</p>
<p>For the past week I have been working on <em><a href="http://adamteale.com/subit">Sub It</a></em> to try get it ready for first release on the Mac App Store.</p>
<p>One of the tools I have put in is a slider to adjust the movie playback rate &#8211; similar to the scrub tool in Final Cut Pro.</p>
<p>There were a few hurdles I had to overcome to get this to work.</p>
<p>Initially I realised I would have to subclass NSSlider to be able to detect/grab the MouseDown and MouseUp NSEvents (I wanted the slider to reset to 0 after the user had released the mouse &#8211; putting the movie in pause/stop) &#8211; googling revealed that NSSlider runs inside its own event loop in the main thread. </p>
<p>Hooking up a delegate to NSSlider subclass allowed me to call actions/methods in the main controller on those Mouse events &#8211; eventually I got this to work with the following code (and via Interface Builder I hooked up the delegate property to the my main Controller):</p>
<p><strong>TimeScrubberSlider.h</strong></p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #6e371a;">#import &lt;Cocoa/Cocoa.h&gt;</span>
<span style="color: #6e371a;">#import &lt;Foundation/Foundation.h&gt;</span>
&nbsp;
<span style="color: #a61390;">@interface</span> TimeScrubberSlider <span style="color: #002200;">:</span> <span style="color: #400080;">NSSlider</span> <span style="color: #002200;">&#123;</span>
	IBOutlet <span style="color: #a61390;">id</span> delegate;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #a61390;">@property</span> <span style="color: #002200;">&#40;</span>readwrite,retain<span style="color: #002200;">&#41;</span> <span style="color: #a61390;">id</span> delegate;
&nbsp;
<span style="color: #a61390;">@end</span></pre></div></div>

<p><strong>TimeScrubberSlider.m</strong></p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #6e371a;">#import &quot;TimeScrubberSlider.h&quot;</span>
<span style="color: #6e371a;">#import &quot;Controller.h&quot;</span>
&nbsp;
<span style="color: #a61390;">@implementation</span> TimeScrubberSlider
&nbsp;
<span style="color: #a61390;">@synthesize</span> delegate;
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>mouseDown<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><span style="color: #400080;">NSEvent</span> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>theEvent  <span style="color: #002200;">&#123;</span>
&nbsp;
	<span style="color: #002200;">&#91;</span>delegate doScrubTime<span style="color: #002200;">:</span><span style="color: #a61390;">nil</span><span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>super mouseDown<span style="color: #002200;">:</span>theEvent<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>self mouseUp<span style="color: #002200;">:</span>theEvent<span style="color: #002200;">&#93;</span>;
&nbsp;
<span style="color: #002200;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span> mouseUp<span style="color: #002200;">:</span> <span style="color: #002200;">&#40;</span><span style="color: #400080;">NSEvent</span><span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span> theEvent
<span style="color: #002200;">&#123;</span>
&nbsp;
	<span style="color: #002200;">&#91;</span>self setIntValue<span style="color: #002200;">:</span><span style="color: #2400d9;">0</span><span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>delegate doPlay<span style="color: #002200;">:</span><span style="color: #a61390;">nil</span><span style="color: #002200;">&#93;</span>;
&nbsp;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #a61390;">@end</span></pre></div></div>

<p>This was all working, but the problem was that the time display of the movie would not constantly update &#8211; only when the slider was moved would the current time update &#8211; not continuously. </p>
<p>So I decided to try attach the updating of the current time display to a separate thread &#8211; using NSThread. My thought was that no matter what happened in the main controllers&#8217; thread, this other thread would always do it&#8217;s own thing and hopefully not be interrupted.</p>
<p>To get this going I created a method (called &#8216;launchTimer&#8217;) that is called when a file is loaded, and this calls the &#8216;updateCurrentTime&#8217; method, and this &#8216;launchTimer&#8217; method is run under the seperate thread. Umm i think that kinda makes sense.</p>
<p>Something along these lines:</p>
<p><strong>snippets from the Controller.m</strong></p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>setupGUIFromFileRead<span style="color: #002200;">&#123;</span>
&nbsp;
	<span style="color: #11740a; font-style: italic;">//just a snippet...</span>
&nbsp;
	<span style="color: #11740a; font-style: italic;">//begin timer to update the current frame/time display - as separate thread so nsslider &quot;scrub&quot; can play nicely</span>
	<span style="color: #002200;">&#91;</span><span style="color: #400080;">NSThread</span> detachNewThreadSelector<span style="color: #002200;">:</span><span style="color: #a61390;">@selector</span><span style="color: #002200;">&#40;</span>launchTimer<span style="color: #002200;">&#41;</span> 
                             toTarget<span style="color: #002200;">:</span>self 
                           withObject<span style="color: #002200;">:</span><span style="color: #a61390;">nil</span><span style="color: #002200;">&#93;</span>;
&nbsp;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>launchTimer<span style="color: #002200;">&#123;</span>
&nbsp;
    <span style="color: #400080;">NSAutoreleasePool</span> <span style="color: #002200;">*</span>pool <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><span style="color: #400080;">NSAutoreleasePool</span> alloc<span style="color: #002200;">&#93;</span> init<span style="color: #002200;">&#93;</span>;
    NSLog<span style="color: #002200;">&#40;</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;startingtimer&quot;</span><span style="color: #002200;">&#41;</span>;
    <span style="color: #002200;">&#91;</span><span style="color: #400080;">NSThread</span> setThreadPriority<span style="color: #002200;">:</span><span style="color: #2400d9;">1.0</span><span style="color: #002200;">&#93;</span>;
    updateTimerToggle <span style="color: #002200;">=</span> <span style="color: #a61390;">YES</span>;
    <span style="color: #a61390;">while</span> <span style="color: #002200;">&#40;</span>updateTimerToggle<span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>  <span style="color: #11740a; font-style: italic;">// loop until cancelled</span>
        <span style="color: #002200;">&#91;</span>self doUpdateCurrentTimeDisplay<span style="color: #002200;">:</span><span style="color: #a61390;">nil</span><span style="color: #002200;">&#93;</span>;
        <span style="color: #002200;">&#91;</span><span style="color: #400080;">NSThread</span> sleepForTimeInterval<span style="color: #002200;">:</span>.1<span style="color: #002200;">&#93;</span>;
    <span style="color: #002200;">&#125;</span>
    <span style="color: #002200;">&#91;</span>pool release<span style="color: #002200;">&#93;</span>;
&nbsp;
<span style="color: #002200;">&#125;</span></pre></div></div>

<hr><h2>3 Comments</h2> <ul><li><p>At <a href="http://adamteale.com/1719/#comment-28187">Tue 2, August 2011</a>, <span class='eg-image' style='float:right; margin-left:10px; display:block; width:80px' ><img alt='' src='http://1.gravatar.com/avatar/bdc9c6f3c045255095e32533691d7ac6?s=80&amp;d=http%3A%2F%2Fuse.perl.org%2Fimages%2Fpix.gif%3Fs%3D80&amp;r=G' class='avatar avatar-80 photo' height='80' width='80' /></span>Bart wrote:</p><p>Wow Adam, seeing all this code makes my head spin! Amazing that you can get to grips with threading and so. Not the most easy concepts. I wonder if Objective C has any deadlock/lifelock issues in thread synchronization. Keep up the work!</p></li><li><p>At <a href="http://adamteale.com/1719/#comment-28286">Thu 4, August 2011</a>, <span class='eg-image' style='float:right; margin-left:10px; display:block; width:80px' ><a rel='external nofollow' href='http://adamteale.com'><img alt='' src='http://1.gravatar.com/avatar/d4866d87a0ada27ce67b707bc56e460b?s=80&amp;d=http%3A%2F%2Fuse.perl.org%2Fimages%2Fpix.gif%3Fs%3D80&amp;r=G' class='avatar avatar-80 photo' height='80' width='80' /></a></span><a href="http://adamteale.com"   rel='external nofollow' class='url'>Adam</a> wrote:</p><p>Hey Bart! Ha it makes my head spin too! From what I gathered looking into threading, NSThread / Cocoa makes it pretty simple to implement. I have used threading in python scripts before, and python too seemed to make it seem quite easy to get going. But really, I know very little about it! </p><p>Once I get my head around the performance side of things, I am sure I will see some memory leaks and performance hits - will see!</p><p>Thanks for your support amigo!</p></li><li><p>At <a href="http://adamteale.com/1719/#comment-28332">Fri 5, August 2011</a>, <span class='eg-image' style='float:right; margin-left:10px; display:block; width:80px' ><img alt='' src='http://0.gravatar.com/avatar/2bd0bc51c7f9567aa45ee0077384ad62?s=80&amp;d=http%3A%2F%2Fuse.perl.org%2Fimages%2Fpix.gif%3Fs%3D80&amp;r=G' class='avatar avatar-80 photo' height='80' width='80' /></span>warwick wrote:</p><p>Hey Adam, I'll Alpha and Beta test it for ya!.</p></li></ul>]]></content:encoded>
			<wfw:commentRss>http://adamteale.com/1719/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>mp3 to wav (a little app written in Objective-C)</title>
		<link>http://adamteale.com/1653/</link>
		<comments>http://adamteale.com/1653/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 02:12:32 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[objective-c]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[wav]]></category>

		<guid isPermaLink="false">http://adamteale.com/?p=1653</guid>
		<description><![CDATA[I was looking for an easy way to batch convert selected tracks in my iTunes library to WAV format, and have them export into a directory (for later use in Final Cut Pro). I came across some Applescripts that would do the conversion within iTunes, but in the end wasn't really what I was after. I started writing something in Python but then figured it would be a great opportunity to give it a go in Obj-C. 
It took half a day and I learnt a lot in the time it took to put it together.
Hopefully people out there can find a use for the little app, or use the XCode project to build something better!
 <a href="http://adamteale.com/1653/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://adamteale.com/wp-content/uploads/2011/04/mp3towav.png"><img class="alignnone size-medium wp-image-1658" title="mp3towav" src="http://adamteale.com/wp-content/uploads/2011/04/mp3towav-300x300.png" alt="" width="300" height="300" /></a></p>
<p><strong>What?</strong></p>
<p>Just knocked together a little app to batch convert selected MP3 files in iTunes to WAV format.</p>
<p>Seems to work pretty well so far.</p>
<p>When the app launches click the button to select the &#8220;Output Directory&#8221; of the converted files.</p>
<p>Then hit the &#8220;Go!&#8221; button.</p>
<p><a href="http://adamteale.com/wp-content/uploads/2011/04/mp3toWAV.png"><img title="mp3toWAV" src="http://adamteale.com/wp-content/uploads/2011/04/mp3toWAV.png" alt="" width="500" height="109" /></a></p>
<p>&nbsp;</p>
<p><strong>Why?</strong></p>
<p>I was looking for an easy way to batch convert selected tracks in my iTunes library to WAV format, and have them export into a directory (for later use in Final Cut Pro). I came across some Applescripts that would do the conversion within iTunes, but in the end wasn&#8217;t really what I was after. I started writing something in Python but then figured it would be a great opportunity to give it a go in Obj-C. It took half a day and I learnt a lot in the time it took to put it together.Hopefully people out there can find a use for the little app, or use the XCode project to build something better!</p>
<p><strong><span style="font-weight: normal;"><br />
</span> </strong></p>
<p><strong>Requirements:</strong></p>
<p>iTunes must be open and the tracks you want to convert must be selected</p>
<p>*Only tested on Mac OS X 10.6.7</p>
<p>&nbsp;</p>
<p><strong>Download:</strong></p>
<p><strong>App:</strong> <a href="http://adamteale.com/download/convertMP3toWAV1.zip">Download MP3toWAV</a></p>
<p><strong>Xcode Project:</strong> <a href="http://adamteale.com/download/convertMP3toWAV2.zip">Download mp3towavXcodeProj</a></p>
<p>&nbsp;</p>
<p><strong>Notes:</strong></p>
<p>Built using XCode and ObjC. I needed the following to talk to iTunes via OBJC:</p>
<ul>
<li>objc-appscript &#8211; <a href="http://appscript.sourceforge.net/objc-appscript/install.html">http://appscript.sourceforge.net/objc-appscript/install.html</a></li>
<li>ASDictionary &#8211; <a href="http://sourceforge.net/projects/appscript/files/">http://sourceforge.net/projects/appscript/files/</a></li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<hr><h2>2 Comments</h2> <ul><li><p>At <a href="http://adamteale.com/1653/#comment-24892">Thu 28, April 2011</a>, <span class='eg-image' style='float:right; margin-left:10px; display:block; width:80px' ><img alt='' src='http://0.gravatar.com/avatar/2bd0bc51c7f9567aa45ee0077384ad62?s=80&amp;d=http%3A%2F%2Fuse.perl.org%2Fimages%2Fpix.gif%3Fs%3D80&amp;r=G' class='avatar avatar-80 photo' height='80' width='80' /></span>Warwick wrote:</p><p>Very cool! I'll try it out. Do you have new magic to add or interpolate lost samples from mp3 back into .wav? Lol!</p></li><li><p>At <a href="http://adamteale.com/1653/#comment-24909">Fri 29, April 2011</a>, <span class='eg-image' style='float:right; margin-left:10px; display:block; width:80px' ><a rel='external nofollow' href='http://adamteale.com'><img alt='' src='http://1.gravatar.com/avatar/d4866d87a0ada27ce67b707bc56e460b?s=80&amp;d=http%3A%2F%2Fuse.perl.org%2Fimages%2Fpix.gif%3Fs%3D80&amp;r=G' class='avatar avatar-80 photo' height='80' width='80' /></a></span><a href="http://adamteale.com"   rel='external nofollow' class='url'>Adam</a> wrote:</p><p>:) Trying to remember some simple high school mathematics at the moment so it might be a while until I could get that happening!</p></li></ul>]]></content:encoded>
			<wfw:commentRss>http://adamteale.com/1653/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MyShares app</title>
		<link>http://adamteale.com/1344/</link>
		<comments>http://adamteale.com/1344/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 12:23:16 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Extremely Cool]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[investment]]></category>
		<category><![CDATA[nstableview]]></category>
		<category><![CDATA[obj-c]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[stock market]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://adamteale.com/?p=1344</guid>
		<description><![CDATA[Spent most of today learning more about NSTableView, memory management and other things Cocoa/Obj-C/xCode. What came of it? I made a little app for keeping track of shares &#8211; via finance.yahoo.com. Includes an open/save dialog so you can have a &#8230; <a href="http://adamteale.com/1344/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-1346" title="icon" src="http://adamteale.com/wp-content/uploads/2009/10/icon.png" alt="icon" width="512" height="512" /></p>
<p>Spent most of today learning more about NSTableView, memory management and other things Cocoa/Obj-C/xCode.</p>
<p>What came of it?</p>
<p>I made a little app for keeping track of shares &#8211; via finance.yahoo.com.</p>
<p>Includes an open/save dialog so you can have a &#8216;portfolio&#8217; to open again at a later time.</p>
<p>ATM I think it only runs in OS X 10.6.</p>
<a href="http://adamteale.com/download/MyShares.zip">Download MyShares</a>
<p><img class="alignnone size-medium wp-image-1345" title="myshares" src="http://adamteale.com/wp-content/uploads/2009/10/myshares-300x129.png" alt="myshares" width="300" height="129" /><br />
<a href="http://adamteale.com/download/MyShares_xCode.zip">Download MyShares xcode project</a></p>
]]></content:encoded>
			<wfw:commentRss>http://adamteale.com/1344/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SubIt 1.1</title>
		<link>http://adamteale.com/1338/</link>
		<comments>http://adamteale.com/1338/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 02:36:36 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[objective-c]]></category>
		<category><![CDATA[subit]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[fcp]]></category>
		<category><![CDATA[final cut pro]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[subtitle]]></category>
		<category><![CDATA[translation]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://adamteale.com/?p=1338</guid>
		<description><![CDATA[Latest release of SubIt &#8211; version 1.1 Finally it&#8217;s here! After a complete rewrite in Objective-C I am happy to say that I have a working version of SubIt. What&#8217;s new? Most noticeably the ability to select QTTracks in your &#8230; <a href="http://adamteale.com/1338/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://adamteale.com/wp-content/uploads/2009/03/subit_icon.png" alt="subit_icon" title="subit_icon" width="500" height="233" class="alignnone size-full wp-image-1324" /><br />
Latest release of <a href="http://adamteale.com/subit">SubIt</a> &#8211; version 1.1</p>
<p>Finally it&#8217;s here!<br />
After a complete rewrite in Objective-C I am happy to say that I have a working version of SubIt.</p>
<p><strong>What&#8217;s new?</strong><br />
Most noticeably the ability to select QTTracks in your media.<br />
Ability to select a font/style/size before exporting your work.</p>
<p><a href="http://adamteale.com/subit">Download it</a> and let me know what you think and what bugs you have found!</p>
<p><img src="http://adamteale.com/wp-content/uploads/2009/03/subit_window-1024x682.png" alt="subit_window" title="subit_window" width="512" height="341" class="alignnone size-large wp-image-1329" /></p>
<hr><h2>3 Comments</h2> <ul><li><p>At <a href="http://adamteale.com/1338/#comment-14163">Wed 14, October 2009</a>, <span class='eg-image' style='float:right; margin-left:10px; display:block; width:80px' ><img alt='' src='http://0.gravatar.com/avatar/2ce5a47ff0e6f35dab7a2655ba2301ef?s=80&amp;d=http%3A%2F%2Fuse.perl.org%2Fimages%2Fpix.gif%3Fs%3D80&amp;r=G' class='avatar avatar-80 photo' height='80' width='80' /></span>Nicholas Ward wrote:</p><p>Finally, Way to go Mate! love the logo :p 555</p></li><li><p>At <a href="http://adamteale.com/1338/#comment-14170">Wed 14, October 2009</a>, <span class='eg-image' style='float:right; margin-left:10px; display:block; width:80px' ><a rel='external nofollow' href='http://adamteale.com'><img alt='' src='http://1.gravatar.com/avatar/d4866d87a0ada27ce67b707bc56e460b?s=80&amp;d=http%3A%2F%2Fuse.perl.org%2Fimages%2Fpix.gif%3Fs%3D80&amp;r=G' class='avatar avatar-80 photo' height='80' width='80' /></a></span><a href="http://adamteale.com"   rel='external nofollow' class='url'>Adam</a> wrote:</p><p>Cheers man! Thanks again for all your hard work putting the logo together! :)</p></li><li><p>At <a href="http://adamteale.com/1338/#comment-14305">Tue 3, November 2009</a>, <span class='eg-image' style='float:right; margin-left:10px; display:block; width:80px' ><img alt='' src='http://0.gravatar.com/avatar/2fcdc6ce9c7758a41c4e18d6741c73ab?s=80&amp;d=http%3A%2F%2Fuse.perl.org%2Fimages%2Fpix.gif%3Fs%3D80&amp;r=G' class='avatar avatar-80 photo' height='80' width='80' /></span>ano wrote:</p><p>I wish i had something to write subtitles for!</p></li></ul>]]></content:encoded>
			<wfw:commentRss>http://adamteale.com/1338/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Multiply &#8211; little xcode project</title>
		<link>http://adamteale.com/1320/</link>
		<comments>http://adamteale.com/1320/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 00:56:47 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[objective-c]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://adamteale.com/?p=1320</guid>
		<description><![CDATA[Yesterday afternoon I was sitting with Erin &#38; Hugh seeing if we could do 2 digit multiplications in our head, such as 34 * 94. It turned out I am pretty bad at this so I figured I&#8217;d make a &#8230; <a href="http://adamteale.com/1320/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday afternoon I was sitting with Erin &amp; Hugh seeing if we could do 2 digit multiplications in our head, such as 34 * 94.</p>
<p>It turned out I am pretty bad at this so I figured I&#8217;d make a little mac app/game to practice with and get back into coding.</p>
<p>Looks like it&#8217;s a 64 bit app, and i think it only runs in 10.6.</p>
<p><img class="alignnone size-full wp-image-1321" title="multiply" src="http://adamteale.com/wp-content/uploads/2009/09/multiply.png" alt="multiply" width="375" height="580" /></p>
<p>I might rebuild it for the iPhone.</p>
<a class="downloadlink" href="http://adamteale.com/download/Multiply.zip" title="Version1 downloaded 67 times" >multiply app (67)</a>
<p>xcode project:</p>
<a class="downloadlink" href="http://adamteale.com/download/Multiply_xcode.zip" title=" downloaded 76 times" >multiply xcode project .zip (76)</a>
<hr><h2>2 Comments</h2> <ul><li><p>At <a href="http://adamteale.com/1320/#comment-14051">Mon 28, September 2009</a>, <span class='eg-image' style='float:right; margin-left:10px; display:block; width:80px' ><a rel='external nofollow' href='http://adamteale.com'><img alt='' src='http://1.gravatar.com/avatar/d4866d87a0ada27ce67b707bc56e460b?s=80&amp;d=http%3A%2F%2Fuse.perl.org%2Fimages%2Fpix.gif%3Fs%3D80&amp;r=G' class='avatar avatar-80 photo' height='80' width='80' /></a></span><a href="http://adamteale.com"   rel='external nofollow' class='url'>Adam</a> wrote:</p><p>haha, it looks like the answer if gives is incorrect!</p><p>fixing it now...</p></li><li><p>At <a href="http://adamteale.com/1320/#comment-14052">Mon 28, September 2009</a>, <span class='eg-image' style='float:right; margin-left:10px; display:block; width:80px' ><a rel='external nofollow' href='http://adamteale.com'><img alt='' src='http://1.gravatar.com/avatar/d4866d87a0ada27ce67b707bc56e460b?s=80&amp;d=http%3A%2F%2Fuse.perl.org%2Fimages%2Fpix.gif%3Fs%3D80&amp;r=G' class='avatar avatar-80 photo' height='80' width='80' /></a></span><a href="http://adamteale.com"   rel='external nofollow' class='url'>Adam</a> wrote:</p><p>ok, now it should multiply correctly.</p></li></ul>]]></content:encoded>
			<wfw:commentRss>http://adamteale.com/1320/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Learning Obj-C</title>
		<link>http://adamteale.com/826/</link>
		<comments>http://adamteale.com/826/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:03:14 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[objective-c]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[subit]]></category>
		<category><![CDATA[obj-c]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://adamteale.com/?p=826</guid>
		<description><![CDATA[Yesterday I decided I have to give up on PyObjC for the moment and step into the world of Objective-C. I have got to a point in developing SubIt that I can&#8217;t seem to get enough out of the PyObjC &#8230; <a href="http://adamteale.com/826/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://theindecisivepinay.files.wordpress.com/2009/01/pull-out-hair.jpg" title="http://theindecisivepinay.files.wordpress.com/2009/01/pull-out-hair.jpg" class="alignnone" width="250" height="290" /></p>
<p>Yesterday I decided I have to give up on PyObjC for the moment and step into the world of Objective-C.</p>
<p>I have got to a point in developing SubIt that I can&#8217;t seem to get enough out of the PyObjC bridge to be able to get what SubIt needs.</p>
<p>So now I am in the process of rewriting SubIt in Obj-C.</p>
<p>Obj-C seems weird and complicated and I can&#8217;t see why it has to be this way when Python/Ruby seem just so much much easier to understand. Oh well, I have taken the plunge.</p>
<p>I spent most of yesterday reading a great and easy to follow PDF called &#8220;<a href="http://www.cocoalab.com/?q=becomeanxcoder">Become An Xcoder</a>&#8220;, available for free download:<br />
<a href="http://www.cocoalab.com/?q=becomeanxcoder">http://www.cocoalab.com/?q=becomeanxcoder</a></p>
<p>I have been looking at a bunch of podcasts/videos/books and to me this PDF was the quickest/easiest way to get a little up to speed.</p>
]]></content:encoded>
			<wfw:commentRss>http://adamteale.com/826/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

