<?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>tmro &#187; Uncategorized</title>
	<atom:link href="http://www.tmro.net/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tmro.net</link>
	<description>Mobilise your business</description>
	<lastBuildDate>Sun, 21 Aug 2011 01:38:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Versionsapp (Subversion) and Static Libraries</title>
		<link>http://www.tmro.net/2010/06/versionsapp-subversion-and-static-libraries/</link>
		<comments>http://www.tmro.net/2010/06/versionsapp-subversion-and-static-libraries/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 08:55:20 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.tmro.net/?p=271</guid>
		<description><![CDATA[Ever since the kind people at versionsapp.com have given me a free license to use their awesome product I have been enjoying it a lot. Today I imported an existing iPhone project and then checked it out again. To my &#8230; <a href="http://www.tmro.net/2010/06/versionsapp-subversion-and-static-libraries/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ever since the kind people at <a  href="http://versionsapp.com">versionsapp.com</a> have given me a free license to use their awesome product I have been enjoying it a lot.</p>
<p>Today I imported an existing iPhone project and then checked it out again. To my surprise when I tried to build it I encountered an error. I checked  my SVN repository and discovered that a static library ( .a) was not there.</p>
<p>Apparently .a files are treated as hidden files and they don&#8217;t get added to the repository. If you want to &#8220;fix&#8221; this in Versions app then select View -&gt; Show Ignored Items (⌘ + ⇧ + I) and then simply add and commit.</p>
<p>It&#8217;s not hard, you just need to know what to look for.</p>
<p>Cheers&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tmro.net/2010/06/versionsapp-subversion-and-static-libraries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solved: Mac OS X (Snow Leopard) and SVN (1.6.2)</title>
		<link>http://www.tmro.net/2009/11/solved-mac-os-x-snow-leopard-and-svn-1-6-2/</link>
		<comments>http://www.tmro.net/2009/11/solved-mac-os-x-snow-leopard-and-svn-1-6-2/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 05:01:31 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mac os]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.tmro.net/?p=222</guid>
		<description><![CDATA[Today I spent a few hours trying to figure out why Eclipse was unable to connect to my locally running Subversion server. I was annoyed especially because Xcode and Terminal were not having any issues. Some background information. - SVN &#8230; <a href="http://www.tmro.net/2009/11/solved-mac-os-x-snow-leopard-and-svn-1-6-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today I spent a few hours trying to figure out why Eclipse was unable to connect to my locally running Subversion server. I was annoyed especially because Xcode and Terminal were not having any issues.</p>
<p>Some background information.<br />
- SVN is running as a daemon locally. It gets started by:<br />
<em>svnserve -d &#8211;listen-host localhost -r /Library/Subversion/Repository</em></p>
<p>- trying to checkout stuff using the command below via Terminal works fine<br />
<em>svn co svn://localhost/Project1/trunk WorkingDirName</em></p>
<p>- trying to browse the svn repository from within Eclipse 3.5 Galileo using either Subclipse or Subversive always ends up with:<br />
<em>svn: connection refused by the server</em></p>
<p>I tried many things but none of them helped. I googled but failed to find something relevant. Just before giving up I thought I would check what ports were open on my machine, maybe there was some conflict. There was no conflict but&#8230;<br />
<em>netstat -anp TCP | grep LISTEN</em><br />
returned this:<br />
<em>tcp6       0      0  ::1.3690               *.*                    LISTEN</em><br />
That&#8217;s when it dawned on me: the svnserve was binding an IPV6 address and Eclipse could not handle that!</p>
<p>Solution:<br />
<em> ps -ef | grep svnserve</em><br />
<em> kill -9</em> (where proc_id is the process id of your svnserve, the second number on the line)<br />
<em> svnserve -d &#8211;listen-host 127.0.0.1 -r /Library/Subversion/Repository/ </em>(or wherever you&#8217;ve placed your Repository)</p>
<p>Done! Now svnserve is bound to an IPV4 and Eclipse can play nice too.</p>
<p>Cheers&#8230;</p>
<p>p.s. please let me know if this worked with other Mac OS / SVN versions too</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tmro.net/2009/11/solved-mac-os-x-snow-leopard-and-svn-1-6-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSON Framework &#8212; Potential Null Dereference</title>
		<link>http://www.tmro.net/2009/10/json-framework-potential-null-dereference/</link>
		<comments>http://www.tmro.net/2009/10/json-framework-potential-null-dereference/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 23:58:46 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tmro.net/?p=202</guid>
		<description><![CDATA[If you are using json-framework as your preferred iPhone / Cocoa Touch JSON framework then you might find that the SBJSON.m is not necessarily perfect. Don&#8217;t get me wrong, it is an awesome utility and it has saved me heaps &#8230; <a href="http://www.tmro.net/2009/10/json-framework-potential-null-dereference/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you are using <a href="http://code.google.com/p/json-framework/" target="_blank">json-framework </a>as your preferred iPhone / Cocoa Touch JSON framework then you might find that the SBJSON.m is not necessarily perfect.<br />
Don&#8217;t get me wrong, it is an awesome utility and it has saved me heaps of time but when analyzing the code (with XCode 3.2) I got lots (36 or so) of Potential null dereference warnings.</p>
<p>The reason for it is that when this the error is built in lines like this:</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">*</span>error <span style="color: #002200;">=</span> err<span style="color: #002200;">&#40;</span>EUNSUPPORTED, <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;JSON object key must be string&quot;</span><span style="color: #002200;">&#41;</span>;</pre></div></div>

<p>The error object is not checked for NULL.<br />
According to Apple&#8217;s documentation one can call a method that takes a error:(NSError**)error parameter with either of these:<br />
NULL<br />
NSError *error = nil;</p>
<p>So if the argument is NULL you can&#8217;t really assign something to it.</p>
<p>To fix the XCode warnings (and your code) just do this test before the call to create a new error object.</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #a61390;">if</span> <span style="color: #002200;">&#40;</span>error <span style="color: #002200;">!=</span> <span style="color: #a61390;">NULL</span><span style="color: #002200;">&#41;</span>
  <span style="color: #002200;">*</span>error <span style="color: #002200;">=</span> err<span style="color: #002200;">&#40;</span>EUNSUPPORTED, <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;JSON object key must be string&quot;</span><span style="color: #002200;">&#41;</span>;</pre></div></div>

<p>Cheers&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tmro.net/2009/10/json-framework-potential-null-dereference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

