<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: OCMock and the iPhone</title>
	<atom:link href="http://iamthewalr.us/blog/2008/11/ocmock-and-the-iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://iamthewalr.us/blog/2008/11/ocmock-and-the-iphone/</link>
	<description>by Colin Barrett</description>
	<lastBuildDate>Sun, 06 Jun 2010 00:19:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: high paying affiliat</title>
		<link>http://iamthewalr.us/blog/2008/11/ocmock-and-the-iphone/comment-page-1/#comment-43896</link>
		<dc:creator>high paying affiliat</dc:creator>
		<pubDate>Mon, 02 Mar 2009 09:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/?p=85#comment-43896</guid>
		<description>&lt;p&gt;Great tips! One question: When you add OCMock.framework to your project, I assume you first copy the whole folder inside your project folder?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great tips! One question: When you add OCMock.framework to your project, I assume you first copy the whole folder inside your project folder?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Alon</title>
		<link>http://iamthewalr.us/blog/2008/11/ocmock-and-the-iphone/comment-page-1/#comment-43883</link>
		<dc:creator>Alon</dc:creator>
		<pubDate>Fri, 13 Feb 2009 21:48:54 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/?p=85#comment-43883</guid>
		<description>&lt;p&gt;I followed similar steps to use OCMock to test for the iPhone. I found that adding Hamcrest to my testing toolkit was a significant improvement over the GTM/SenTest assertions. My experience and suggestions are at http://blog.carbonfive.com/2009/02/testing/iphone-unit-testing-toolkit.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I followed similar steps to use OCMock to test for the iPhone. I found that adding Hamcrest to my testing toolkit was a significant improvement over the GTM/SenTest assertions. My experience and suggestions are at <a href="http://blog.carbonfive.com/2009/02/testing/iphone-unit-testing-toolkit" rel="nofollow">http://blog.carbonfive.com/2009/02/testing/iphone-unit-testing-toolkit</a>.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: doug</title>
		<link>http://iamthewalr.us/blog/2008/11/ocmock-and-the-iphone/comment-page-1/#comment-43882</link>
		<dc:creator>doug</dc:creator>
		<pubDate>Wed, 11 Feb 2009 16:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/?p=85#comment-43882</guid>
		<description>&lt;p&gt;Ok, I added OCMock.framework to my project and only to my test target.  That created an entry in my Frameworks group and an entry in my test targets Link phase.  I created the copy phase as you said above before the compile phase of my test target.  I then setup my testBlahBlahBlah.m file to import &quot;OCMock/OCMock.h&quot;.  It all seems to work now.  The build succeeds and the tests pass that use a mock object.&lt;/p&gt;

&lt;p&gt;What I don&#039;t understand is why this is all necessary.  When I hover over the OCMock.framework in my Frameworks group, it shows the path is still /Library/Frameworks.  Seems like my project is still then dependent on the system setup.  So if I have the OCMock.framework copied into my project (somehow), why do I need to copy it into the BUILT_PRODUCTS_DIR also?  I guess my bigger problem is that I don&#039;t understand include and link paths when using XCode.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ok, I added OCMock.framework to my project and only to my test target.  That created an entry in my Frameworks group and an entry in my test targets Link phase.  I created the copy phase as you said above before the compile phase of my test target.  I then setup my testBlahBlahBlah.m file to import &#8220;OCMock/OCMock.h&#8221;.  It all seems to work now.  The build succeeds and the tests pass that use a mock object.</p>

<p>What I don&#8217;t understand is why this is all necessary.  When I hover over the OCMock.framework in my Frameworks group, it shows the path is still /Library/Frameworks.  Seems like my project is still then dependent on the system setup.  So if I have the OCMock.framework copied into my project (somehow), why do I need to copy it into the BUILT_PRODUCTS_DIR also?  I guess my bigger problem is that I don&#8217;t understand include and link paths when using XCode.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: tstellanova</title>
		<link>http://iamthewalr.us/blog/2008/11/ocmock-and-the-iphone/comment-page-1/#comment-43869</link>
		<dc:creator>tstellanova</dc:creator>
		<pubDate>Wed, 14 Jan 2009 07:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/?p=85#comment-43869</guid>
		<description>&lt;p&gt;A couple notes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;GTM can be set up to run on-device on the iPhone.  So it might be interesting to build OCMock for a device target after all.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I had trouble including OCMock via&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;import &quot;OCMock.h&quot;&lt;/p&gt;

&lt;p&gt;Instead I had to use&lt;/p&gt;

&lt;p&gt;import &quot;OCMock/OCMock.h&quot;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>A couple notes:</p>

<ul>
<li><p>GTM can be set up to run on-device on the iPhone.  So it might be interesting to build OCMock for a device target after all.</p></li>
<li><p>I had trouble including OCMock via</p></li>
</ul>

<p>import &#8220;OCMock.h&#8221;</p>

<p>Instead I had to use</p>

<p>import &#8220;OCMock/OCMock.h&#8221;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: thrusty</title>
		<link>http://iamthewalr.us/blog/2008/11/ocmock-and-the-iphone/comment-page-1/#comment-43856</link>
		<dc:creator>thrusty</dc:creator>
		<pubDate>Mon, 05 Jan 2009 12:34:34 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/?p=85#comment-43856</guid>
		<description>&lt;p&gt;Great tips!  One question:  When you add OCMock.framework to your project, I assume you first copy the whole folder inside your project folder?&lt;/p&gt;

&lt;p&gt;Also, I found this confusing:&lt;/p&gt;

&lt;p&gt;&quot;drag the Copy Files phase, which I renamed it to “Copy OCMock”, between the Compile Sources and Link Binary With Libraries phases&quot;&lt;/p&gt;

&lt;p&gt;I eventually figured out that this meant: drag the &quot;Copy OCMock&quot; build phase so that it comes after &quot;Compile Sources&quot; and before the &quot;Link Binary with Library&quot;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great tips!  One question:  When you add OCMock.framework to your project, I assume you first copy the whole folder inside your project folder?</p>

<p>Also, I found this confusing:</p>

<p>&#8220;drag the Copy Files phase, which I renamed it to “Copy OCMock”, between the Compile Sources and Link Binary With Libraries phases&#8221;</p>

<p>I eventually figured out that this meant: drag the &#8220;Copy OCMock&#8221; build phase so that it comes after &#8220;Compile Sources&#8221; and before the &#8220;Link Binary with Library&#8221;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Domain of the Bored &#187; Blog Archive &#187; My CocoaHeads unit testing presentation</title>
		<link>http://iamthewalr.us/blog/2008/11/ocmock-and-the-iphone/comment-page-1/#comment-43855</link>
		<dc:creator>Domain of the Bored &#187; Blog Archive &#187; My CocoaHeads unit testing presentation</dc:creator>
		<pubDate>Mon, 05 Jan 2009 11:35:41 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/?p=85#comment-43855</guid>
		<description>&lt;p&gt;[...] (as much as it is to any other platform); for specific information about testing on the iPhone, see Colin&#039;s blog post. I corrected a few things that I got wrong in the original live presentation, and added a few new [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[&#8230;] (as much as it is to any other platform); for specific information about testing on the iPhone, see Colin&#8217;s blog post. I corrected a few things that I got wrong in the original live presentation, and added a few new [&#8230;]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Useful open source libraries for IPhone Development » Post » Coding Ventures</title>
		<link>http://iamthewalr.us/blog/2008/11/ocmock-and-the-iphone/comment-page-1/#comment-43844</link>
		<dc:creator>Useful open source libraries for IPhone Development » Post » Coding Ventures</dc:creator>
		<pubDate>Tue, 23 Dec 2008 11:14:58 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/?p=85#comment-43844</guid>
		<description>&lt;p&gt;[...] is also a mock object framework called OCMock that is designed for MacOS X Cocoa, but with a little bit of work you can get that to work for your IPhone [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[&#8230;] is also a mock object framework called OCMock that is designed for MacOS X Cocoa, but with a little bit of work you can get that to work for your IPhone [&#8230;]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Alistair</title>
		<link>http://iamthewalr.us/blog/2008/11/ocmock-and-the-iphone/comment-page-1/#comment-43836</link>
		<dc:creator>Alistair</dc:creator>
		<pubDate>Mon, 08 Dec 2008 10:45:56 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/?p=85#comment-43836</guid>
		<description>&lt;p&gt;Also the includes for your tests are&lt;/p&gt;

&lt;p&gt;import &lt;OCMock/OCMock.h&gt;&lt;/p&gt;

&lt;p&gt;not&lt;/p&gt;

&lt;p&gt;import &quot;OCMock.h&quot; like the example projects&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Also the includes for your tests are</p>

<p>import &lt;OCMock/OCMock.h&gt;</p>

<p>not</p>

<p>import &#8220;OCMock.h&#8221; like the example projects</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Colin Barrett</title>
		<link>http://iamthewalr.us/blog/2008/11/ocmock-and-the-iphone/comment-page-1/#comment-43820</link>
		<dc:creator>Colin Barrett</dc:creator>
		<pubDate>Fri, 21 Nov 2008 21:34:42 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/?p=85#comment-43820</guid>
		<description>&lt;p&gt;James:&lt;/p&gt;

&lt;p&gt;I&#039;ve fixed that in the article. Thanks a lot!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>James:</p>

<p>I&#8217;ve fixed that in the article. Thanks a lot!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: James Moore</title>
		<link>http://iamthewalr.us/blog/2008/11/ocmock-and-the-iphone/comment-page-1/#comment-43818</link>
		<dc:creator>James Moore</dc:creator>
		<pubDate>Thu, 20 Nov 2008 00:57:39 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/?p=85#comment-43818</guid>
		<description>&lt;p&gt;One thing that I didn&#039;t get right away is that you need to tell the &quot;Copy OC Mock&quot; build phase which files to copy.  Just drag the OCMock.framework file onto the &quot;Copy OC Mock&quot; icon.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>One thing that I didn&#8217;t get right away is that you need to tell the &#8220;Copy OC Mock&#8221; build phase which files to copy.  Just drag the OCMock.framework file onto the &#8220;Copy OC Mock&#8221; icon.</p>]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.275 seconds -->
