<?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>rel=me &#187; Cocoa</title>
	<atom:link href="http://rel.me/c/cocoa/feed/" rel="self" type="application/rss+xml" />
	<link>http://rel.me</link>
	<description>programming, objective-c, cocoa, iphone, c</description>
	<lastBuildDate>Tue, 02 Feb 2010 04:04:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>YAJL JSON Parser (Objective-C Bindings)</title>
		<link>http://rel.me/2009/06/15/yajl-json-parser-objective-c-bindings/</link>
		<comments>http://rel.me/2009/06/15/yajl-json-parser-objective-c-bindings/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 07:27:18 +0000</pubDate>
		<dc:creator>gabe</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[yajl]]></category>

		<guid isPermaLink="false">http://rel.me/?p=238</guid>
		<description><![CDATA[I recently was investigating using a more lightweight JSON parser for iPhone projects (other than the standard SBJSON library) and came across the YAJL C JSON library. While using it as a document style parser didn&#8217;t result in a huge performance gain, it does a support a streaming &#8220;SAX&#8221; style parser which might help memory [...]]]></description>
			<content:encoded><![CDATA[<p>I recently was investigating using a more lightweight JSON parser for iPhone projects (other than the standard <a href="http://code.google.com/p/json-framework/">SBJSON</a> library) and came across the <a href="http://lloyd.github.com/yajl/">YAJL</a> C JSON library. While using it as a document style parser didn&#8217;t result in a huge performance gain, it does a support a streaming &#8220;SAX&#8221; style parser which might help memory usage in larger documents.</p>
<p>Hopefully, sometime soon I will do some performance comparisons. In the meantime, if you try these bindings, let me know how it goes. You can find it on github at: <a href="http://github.com/gabriel/yajl-objc">http://github.com/gabriel/yajl-objc</a>.</p>
<p>Right now, I only have a framework (for 10.5) built, but check back and at some point will have a static iPhone library built as well.</p>
<p>Here are some quick usage examples:</p>
<h3>Usage</h3>
<p><script src="http://gist.github.com/138679.js"></script></p>
<h3>Usage (Streaming)</h3>
<p><script src="http://gist.github.com/138680.js"></script></p>
<h3>Usage (Document style)</h3>
<p><script src="http://gist.github.com/138682.js"></script></p>
<p><b>Updated</b> (07/01/2009): Updated usage to use new API changes for better streaming support.</p>
]]></content:encoded>
			<wfw:commentRss>http://rel.me/2009/06/15/yajl-json-parser-objective-c-bindings/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Invoking forward</title>
		<link>http://rel.me/2009/05/22/nsinvocation-nsproxy-forwardinvocatio/</link>
		<comments>http://rel.me/2009/05/22/nsinvocation-nsproxy-forwardinvocatio/#comments</comments>
		<pubDate>Fri, 22 May 2009 06:10:50 +0000</pubDate>
		<dc:creator>gabe</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://rel.me/?p=215</guid>
		<description><![CDATA[Typically when you want to invoke methods on a separate thread, with a delay, back on the main thread after a long operation, etc,  you are stuck with the performSelector:onThread: methods. With performSelector you are limited to invoking with a limited number of arguments, which must be objects; it won&#8217;t auto-unbox NSValue/NSNumber/NSNull like key value [...]]]></description>
			<content:encoded><![CDATA[<p>Typically when you want to invoke methods on a separate thread, with a delay, back on the main thread after a long operation, etc,  you are stuck with the performSelector:onThread: methods. With performSelector you are limited to invoking with a limited number of arguments, which must be objects; it won&#8217;t auto-unbox NSValue/NSNumber/NSNull like key value coding does.</p>
<p>This limitation can be really frustrating, particularly when you are using NSOperation or threading in general and need your delegates to call back onto the main (UI) thread.</p>
<p>A possible solution is to use NSInvocation with performSelector to deal with multiple arguments and primitives, for example:</p>
<p><script src="http://gist.github.com/138684.js"></script></p>
<p>but it gets cumbersome, especially setting up the invocation instance. (BTW, the first argument is at index 2 because of the hidden arguments self and _cmd.) Also you would need to call retainArguments if your arguments were objects, that may be released by the calling thread.</p>
<p>Thankfully there is a better way. In a post called &#8216;<a href="http://toxicsoftware.com/grab-that-invocation/">Grab that Invocation</a>&#8216; and later at Dave Dribbin&#8217;s post &#8216;<a href="http://www.dribin.org/dave/blog/archives/2008/05/22/invoke_on_main_thread/">Invoke on Main Thread</a>&#8216; we can see how to get an NSInvocation instance from an NSProxy/forwardInvocation: automatically; and now we can combine the proxy with performSelector:onThread: or any of the other peformSelector methods to invoke back on the main thread, invoke on other threads, delay invocation, or other more general <a href="http://en.wikipedia.org/wiki/Aspect-oriented_programming">aspects</a> like timing methods, debugging, logging, or security.</p>
<p>You can find Dave Dribbins original <a href="http://www.dribin.org/dave/hg/DDFoundation/file/702f3ad9dc6f/lib/DDInvocationGrabber.m">DDInvocationGrabber</a> implementation in his <a href="http://www.dribin.org/dave/hg/DDFoundation/">DDFoundation</a> library.</p>
<p>I&#8217;ve expanded on it a bit in <a href="http://github.com/gabriel/gh-kit">GHKit</a>, (see <a href="http://github.com/gabriel/gh-kit/blob/master/Classes/GHNSInvocationProxy.h">GHNSInvocationProxy</a>) and plan on adding more features. If you use it with the <a href="http://github.com/gabriel/gh-kit/blob/master/Classes/GHNSObject+Invocation.h">GHNSObject+Invocation</a> category, it gets even better:</p>
<p><script src="http://gist.github.com/138685.js"></script></p>
<p>This category also includes other performSelector helpers (supporting var args and argument lists). </p>
<p>What might be some other ways to use this? Maybe an NSOperationProxy that allows you to queue and prioritize invocations, or more complex debugging or analytics proxies that can keep stats of certain activities.</p>
]]></content:encoded>
			<wfw:commentRss>http://rel.me/2009/05/22/nsinvocation-nsproxy-forwardinvocatio/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Unit Testing Framework &amp; GUI for Mac OS X and iPhone (GHUnit)</title>
		<link>http://rel.me/2009/02/21/unit-testing-for-mac-os-x-and-iphone-ghunit/</link>
		<comments>http://rel.me/2009/02/21/unit-testing-for-mac-os-x-and-iphone-ghunit/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 08:08:35 +0000</pubDate>
		<dc:creator>gabe</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://rel.me/?p=197</guid>
		<description><![CDATA[I&#8217;ve always wondered why XCode doesn&#8217;t have a unit testing GUI like other IDEs, or why the SenTesting framework has to be such a pain to setup, with all its RunScript build phases, shell scripts, octest bundle insanity.  After using the GTMTestCase for the iPhone (since SenTesting isn&#8217;t supported on the iPhone SDK) I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always wondered why XCode doesn&#8217;t have a unit testing GUI like other IDEs, or why the SenTesting framework has to be such a pain to setup, with all its RunScript build phases, shell scripts, octest bundle insanity.  After using the GTMTestCase for the iPhone (since SenTesting isn&#8217;t supported on the iPhone SDK) I decided to try to re-purpose some of the GTM Unit Testing code into a standalone testing framework and GUI that I could use on both my Mac OS X and iPhone projects.</p>
<p>GHUnit (pronounced <span class="pronchars">\<span class="unicode">ˈ</span>gü-</span><span class="pronchars"><span class="unicode">ˈ</span>nit</span><span class="pronchars">\, I guess?), hosted at <a href="http://github.com/gabriel/gh-unit/tree/master" target="_self">gabriel/gh-unit</a>, is meant to be installed as a framework (or embedded in your project for iPhone apps), and run as an application in a separate Test target. The idea being that you can run and crash into the XCode debugger directly and utilize all the debugging techniques that you normally use. The test GUI should allow you to see test failures more clearly, view timings / stats and not have to go fishing for the build console window. And an automated way to view stack traces.<br />
</span></p>
<p>Details on how to use the framework are included in the <a href="http://github.com/gabriel/gh-unit/blob/master/README.markdown">README</a>.</p>
<div id="attachment_200" class="wp-caption aligncenter" style="width: 564px"><img class="size-full wp-image-200" title="GHUnit Test GUI for Mac OS X App" src="http://rel.me/wp-content/uploads/2009/02/gh-unit5.jpg" alt="GHUnit Test GUI for Mac OS X App" width="554" height="450" /><p class="wp-caption-text">GHUnit Test GUI for Mac OS X App</p></div>
<div id="attachment_201" class="wp-caption alignleft" style="width: 325px"><img class="size-full wp-image-201" title="Unit Test GUI for iPhone App" src="http://rel.me/wp-content/uploads/2009/02/gh-unit-iphone1.jpg" alt="Unit Test GUI for iPhone App" width="315" height="557" /><p class="wp-caption-text">Unit Test GUI for iPhone App</p></div>
<p>For the iPhone side, I included a similar GUI that runs the tests in the simulator. Though since frameworks are not supported on the iPhone SDK, you&#8217;ll have to embed it in your project, which is a little bit cumbersome. (Any ideas on how to make this easier?)</p>
<p>GHUnit can be used as a standalone test framework (by subclassing GHTestCase), or with your existing SenTestCase tests or GTMTestCase tests.</p>
<p>So far its pretty basic, but I am using it on a couple projects and its been helping my development a bunch and letting me to write tests as I go without completely destroying my workflow or sanity.</p>
<p>Any feedback is appreciated and let me know if you have any problems with the install/embed instructions or in general. Also thanks to the <a href="http://code.google.com/p/google-toolbox-for-mac/source/browse/#svn/trunk/UnitTesting">GTM</a> peeps, on which much of this is based.</p>
<p>Maybe the next step is an XCode plugin?</p>
]]></content:encoded>
			<wfw:commentRss>http://rel.me/2009/02/21/unit-testing-for-mac-os-x-and-iphone-ghunit/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Cocoa Utils Kit</title>
		<link>http://rel.me/2008/08/07/cocoa-utils-kit/</link>
		<comments>http://rel.me/2008/08/07/cocoa-utils-kit/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 18:32:04 +0000</pubDate>
		<dc:creator>gabe</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://rel.me/?p=137</guid>
		<description><![CDATA[I pushed my Objective-C utility kit to github: gh-kit. Its a collection of some files I&#8217;ve found, some I wrote for S3Hub. There isn&#8217;t a ton of stuff there. In fact, it probably needs to be merged into another utils framework or obsoleted completely by someone else (like google toolbox for mac). But until then, it [...]]]></description>
			<content:encoded><![CDATA[<p>I pushed my Objective-C utility kit to github: <a href="http://github.com/gabriel/gh-kit/tree/master">gh-kit</a>. Its a collection of some files I&#8217;ve found, some I wrote for S3Hub. There isn&#8217;t a ton of stuff there. In fact, it probably needs to be merged into another utils framework or obsoleted completely by someone else (like google toolbox for mac). But until then, it has some useful stuff like:</p>
<ul>
<li><a href="http://github.com/gabriel/gh-kit/tree/master/Classes/GHNSDate+Parsing.m">GHNSDate+Parsing.m</a>: Various RFC and ISO date formatting and parsing</li>
<li><a href="http://github.com/gabriel/gh-kit/tree/master/Classes/GHNSString+TimeInterval.m">GHNSString+TimeInterval.m</a>: Time ago in words</li>
<li><a href="http://github.com/gabriel/gh-kit/tree/master/Classes/GHViewAnimation.m">GHViewAnimation.m</a>: View animation helper.
</li>
<li><a href="http://github.com/gabriel/gh-kit/tree/master/Classes/GHNSString+HMAC.m">GHNSString+HMAC.m</a>: HMAC-SHA1 implementation which works on iPhone</li>
</ul>
<p>And other stuff for generating uuids, mime types, etc. I blogged earlier about the <a href="http://rel.me/2008/07/22/date-format-rfc82285010361123asctimeiso8601unicode35tr35-6/">date parsing</a> and <a href="http://rel.me/2008/06/09/time-ago-in-words-for-cocoa/">time ago in words</a>.</p>
<p>Also, be sure to checkout the <a title="google toolbox for mac" href="http://code.google.com/p/google-toolbox-for-mac">Google Toolbox For Mac</a> which is way comprehensive (definately check there first). Feel free to pick and choose stuff at will. All files from other sources should have their original licenses which should all be MIT-like.</p>
<p><em>PS, sorry about the crazy feed crossing before. If you want to switch to a &#8220;cleaner&#8221; feed you can use this url: <a href="http://feeds.feedburner.com/gabrielh">feeds.feedburner.com/gabrielh</a>. Google reader caches the feed entries on the other one, so those will likely live forever.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://rel.me/2008/08/07/cocoa-utils-kit/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Date format RFC822/850/1036/1123; asctime; ISO8601; Unicode#35(tr35-6); *#$*&amp;!</title>
		<link>http://rel.me/2008/07/22/date-format-rfc82285010361123asctimeiso8601unicode35tr35-6/</link>
		<comments>http://rel.me/2008/07/22/date-format-rfc82285010361123asctimeiso8601unicode35tr35-6/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 12:08:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[date]]></category>

		<guid isPermaLink="false">http://ducktaper.com/?p=91</guid>
		<description><![CDATA[I had to deal with handling of various date formats for S3Hub and totally munged it the first couple passes. This post lists some things to be aware of when parsing and formatting HTTP and XML style dates correctly using the Cocoa API&#8217;s.
HTTP Date
Some quick background on HTTP dates first. S3 requires sending a &#8216;Date&#8217; [...]]]></description>
			<content:encoded><![CDATA[<p>I had to deal with handling of various date formats for S3Hub and totally munged it the first couple passes. This post lists some things to be aware of when parsing and formatting HTTP and XML style dates correctly using the Cocoa API&#8217;s.</p>
<h4>HTTP Date</h4>
<p>Some quick background on HTTP dates first. S3 requires sending a &#8216;Date&#8217; header field as part of an authenticated request. (This and signing the request is a common countermeasure against a <a href="http://en.wikipedia.org/wiki/Replay_attack">replay attack</a>.) The spec says, the format of the date should be &#8220;one of the RFC 2616 formats (<a href="http://www.ietf.org/rfc/rfc2616.txt">http://www.ietf.org/rfc/rfc2616.txt</a>)&#8221;.</p>
<blockquote>
<p>HTTP applications have historically allowed three different formats<br /> for the representation of date/time stamps:</p>
<p>Sun, 06 Nov 1994 08:49:37 GMT  ; RFC 822, updated by RFC 1123<br /> Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036<br /> Sun Nov  6 08:49:37 1994       ; ANSI C&#8217;s asctime() format</p>
<p>The first format is preferred as an Internet standard and represents<br /> a fixed-length subset of that defined by RFC 1123 [8] (an update to<br /> RFC 822 [9]). The second format is in common use, but is based on the<br /> obsolete RFC 850 [12] date format and lacks a four-digit year.<br /> HTTP/1.1 clients and servers that parse the date value MUST accept<br /> all three formats (for compatibility with HTTP/1.0), though they MUST<br /> only generate the RFC 1123 format for representing HTTP-date values<br /> in header fields. See section 19.3 for further information.</p>
</blockquote>
<p>So these are the standard formats. When sending a formatted date you should only use RFC1123 but should be able to handle any of the formats listed. This is just a way to maintain compatibility while trying to move everything to the latest format. If you are wondering what the difference is, RFC 1123 updated 822 by changing the time zone from hour format (±0000) to GMT format (GMT).</p>
<p>For example, the &#8216;Date&#8217; or &#8216;Expires&#8217; header fields for requests have this (RFC1123) format. Replies might have an HTTP date format in a Last-Modified or Date header as well.</p>
<h4>ISO Date</h4>
<p>XML data which has formatted date fields might use a date format which is defined by the ISO8601 standard and looks like &#8216;2006-02-03T16:45:09.000Z&#8217;.</p>
<h4>Date parsing in Cocoa</h4>
<p>Prior to 10.4, the Cocoa API supported &#8220;strftime-style conversion specifiers&#8221;. In 10.4, they added support for the <a href="http://unicode.org/reports/tr35/tr35-6.html#Date_Format_Patterns">Unicode Technical Standard #35</a> (version tr35-6).</p>
<p>The pre-10.4 strftime patterns look like: &#8220;%m/%d/%y&#8221; and the Unicode standard looks like &#8220;MM/dd/yyyy&#8221;. The default behavior (for backwards compatibility) is strftime format. In order to use the Unicode standard (which you will, its way better), you need to set the formatter behavior to <code>NSDateFormatterBehavior10_4</code> either by calling <tt>setFormatterBehavior</tt> or setting the classes formatter behavior globally. Do NOT use the <code>initWithDateFormat:allowNaturalLanguage:</code> constructor, because it will give you a pre-10.4 date formatter. Using the strftime style of pattern when configured for the 10.4 (Unicode) behavior will fail silently.</p>
<p>So fast forward a few weeks,  an S3Hub  user told me he was getting authentication errors (invalid signing) trying to connect. I couldn&#8217;t replicate the problem but I eventually got the raw HTTP request header it was sending and the Date header looked like.</p>
<p><tt>Fr, 06 Jun 2008 08:49:37 GMT</tt>.</p>
<p>Turns out the user is in Germany and when I change my locale to something German, I can reproduce the problem. Date formatters themselves can have specific styles (and symbols) that are modified by the locale. In the German locale the weekday symbol for friday is &#8216;Fr&#8217; instead of English locale which is &#8216;Fri&#8217;. So when you use a date formatter in this way (with day or month symbols, for example) make sure to set the locale to en_US. The final date formatter looks like:</p>
<p><script src="http://gist.github.com/138689.js"></script></p>
<p><strong>Update</strong>: See <a href="http://github.com/gabriel/gh-kit/blob/master/Classes/GHNSDate+Parsing.m">GHNSDate+Parsing</a> gh-kit category on github for a collection of these date formatters.</p>
]]></content:encoded>
			<wfw:commentRss>http://rel.me/2008/07/22/date-format-rfc82285010361123asctimeiso8601unicode35tr35-6/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>S3Hub: S3 Client for Mac OS X</title>
		<link>http://rel.me/2008/06/16/s3hub-s3-client-for-mac-os-x/</link>
		<comments>http://rel.me/2008/06/16/s3hub-s3-client-for-mac-os-x/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 16:49:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[S3]]></category>

		<guid isPermaLink="false">/2008/06/16/s3hub-s3-client-for-mac-os-x</guid>
		<description><![CDATA[I&#8217;ve been looking for an Amazon S3 client for the Mac for awhile, that had a couple key features that seem to be missing from apps like Cyberduck or Transmit. Mostly I wanted a better way to manage permissions and make it easier to share files with my friends, and I needed something to throttle [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been looking for an Amazon S3 client for the Mac for awhile, that had a couple key features that seem to be missing from apps like Cyberduck or Transmit. Mostly I wanted a better way to manage permissions and make it easier to share files with my friends, and I needed something to throttle my bandwidth so I can leave beefier transfers running without nuking my Gears of War latency.</p>
<p><img style="float:none" src="http://s3hub.s3.amazonaws.com/Images/S3Hub-Left.png" alt="S3Hub (left)" /></p>
<p>You can download it over at: <a href="http://s3hub.com">http://s3hub.com</a></p>
<p>And, also, its an excuse to do some Cocoa again now that Objective-C 2.0 is out. Garbage collection, declarative properties, and fast enumeration help remove a lot of cruft and let you focus more on making things work. Also there are alot of <a href="http://mattgemmell.com/2007/10/28/get-rid-of-your-code-with-leopard">new</a> and really nice API&#8217;s in Leopard like <a href="http://developer.apple.com/documentation/Cocoa/Reference/NSOperationQueue_class/index.html">NSOperationQueue</a>.</p>
<p><img style="float:none" src="http://s3hub.s3.amazonaws.com/Images/S3Hub-Right.png" alt="S3Hub (right)" /></p>
<p>A major feature I don&#8217;t have yet is sync&#8217;ing (<a href="http://twitter.com/dalmaer/statuses/816637677">syncing is hard</a>); but I think that should come in the next version hopefully. I have some ideas about generating rss feeds or some way to track new files which I think could be really useful. If you have any ideas or find any bugs, leave a post on the <a href="http://groups.google.com/group/s3hub">group</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://rel.me/2008/06/16/s3hub-s3-client-for-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Time ago in words for Cocoa</title>
		<link>http://rel.me/2008/06/09/time-ago-in-words-for-cocoa/</link>
		<comments>http://rel.me/2008/06/09/time-ago-in-words-for-cocoa/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 00:14:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">/2008/06/19/time-ago-in-words-for-cocoa</guid>
		<description><![CDATA[I ported the time_ago_in_words helper for to a category (mixin) for NSString. Its nothing profound but I couldn&#8217;t find it anywhere.
Update: Moved to github and is part of GHKit. You can find this helper: GHNSString+TimeInterval.m
]]></description>
			<content:encoded><![CDATA[<p>I ported the <a href="http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M001007">time_ago_in_words</a> helper for to a category (mixin) for NSString. Its nothing profound but I couldn&#8217;t find it anywhere.</p>
<p><strong>Update</strong>: Moved to github and is part of GHKit. You can find this helper: <a href="http://github.com/gabriel/gh-kit/blob/master/Classes/GHNSString+TimeInterval.m">GHNSString+TimeInterval.m</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rel.me/2008/06/09/time-ago-in-words-for-cocoa/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fix for XCode unit test error (exited abnormally with code 127)</title>
		<link>http://rel.me/2008/04/23/fix-for-xcode-unit-test-error-exited-abnormally-with-code-127/</link>
		<comments>http://rel.me/2008/04/23/fix-for-xcode-unit-test-error-exited-abnormally-with-code-127/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 04:45:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[unit test]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">/2008/04/23/fix-for-xcode-unit-test-error-exited-abnormally-with-code-127</guid>
		<description><![CDATA[If you are getting the:

Test host '/path/to/App exited abnormally with code 127 (it may have crashed).'

error in XCode 3.1 (beta) when you try to run your unit tests then you need to:

Get Info for the Unit Tests target.
Choose the Build tab.
Set the Architectures value to Native Architecture of Build Machine.

]]></description>
			<content:encoded><![CDATA[<p>If you are getting the:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Test host '/path/to/App exited abnormally with code 127 (it may have crashed).'</pre></div></div>

<p>error in XCode 3.1 (beta) when you try to run your unit tests then you need to:</p>
<ol>
<li><strong>Get Info</strong> for the <strong>Unit Tests</strong> target.</li>
<li>Choose the <strong>Build</strong> tab.</li>
<li>Set the <strong>Architectures</strong> value to <strong>Native Architecture of Build Machine</strong>.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://rel.me/2008/04/23/fix-for-xcode-unit-test-error-exited-abnormally-with-code-127/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
