<?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: Custom Constraints for OCMock</title>
	<atom:link href="http://blog.carbonfive.com/2009/02/testing/custom-constraints-for-ocmock/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.carbonfive.com/2009/02/testing/custom-constraints-for-ocmock</link>
	<description></description>
	<lastBuildDate>Tue, 09 Mar 2010 11:34:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Artem</title>
		<link>http://blog.carbonfive.com/2009/02/testing/custom-constraints-for-ocmock/comment-page-1#comment-2336</link>
		<dc:creator>Artem</dc:creator>
		<pubDate>Tue, 09 Mar 2010 11:34:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.carbonfive.com/?p=287#comment-2336</guid>
		<description>How can i run OCMock on device?</description>
		<content:encoded><![CDATA[<p>How can i run OCMock on device?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://blog.carbonfive.com/2009/02/testing/custom-constraints-for-ocmock/comment-page-1#comment-2058</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 16 Nov 2009 23:25:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.carbonfive.com/?p=287#comment-2058</guid>
		<description>Keith,

You need to some dependency injection with the controller (assume it&#039;s called RootController). Keep you nib file basic and create the controller programatically. In the interface add (with usual @synthesize and dealloc stuff):

@interface RootViewController : UITableViewController
{
    UINavigationController *navigationController;
}
@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;

And in the creation (e.g. the AppDelegate) add an extra line to manually set the navigation controller:

RootViewController* rootController = 
    [[RootViewController alloc] initWithNibName:@&quot;RootViewController&quot; bundle:nil];
navigationController =
    [[UINavigationController alloc] initWithRootViewController:rootController];
rootController.navigationController = navigationController;

Then you can do the controller testing and mocking described so well above.</description>
		<content:encoded><![CDATA[<p>Keith,</p>
<p>You need to some dependency injection with the controller (assume it&#8217;s called RootController). Keep you nib file basic and create the controller programatically. In the interface add (with usual @synthesize and dealloc stuff):</p>
<p>@interface RootViewController : UITableViewController<br />
{<br />
    UINavigationController *navigationController;<br />
}<br />
@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;</p>
<p>And in the creation (e.g. the AppDelegate) add an extra line to manually set the navigation controller:</p>
<p>RootViewController* rootController =<br />
    [[RootViewController alloc] initWithNibName:@&#8221;RootViewController&#8221; bundle:nil];<br />
navigationController =<br />
    [[UINavigationController alloc] initWithRootViewController:rootController];<br />
rootController.navigationController = navigationController;</p>
<p>Then you can do the controller testing and mocking described so well above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith</title>
		<link>http://blog.carbonfive.com/2009/02/testing/custom-constraints-for-ocmock/comment-page-1#comment-792</link>
		<dc:creator>Keith</dc:creator>
		<pubDate>Tue, 05 May 2009 23:45:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.carbonfive.com/?p=287#comment-792</guid>
		<description>I&#039;m curious about the fancy navigation controller assignment you referred to in your post.</description>
		<content:encoded><![CDATA[<p>I&#8217;m curious about the fancy navigation controller assignment you referred to in your post.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
