<?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>I am not robot. &#187; code</title>
	<atom:link href="http://iamnotrobot.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://iamnotrobot.com</link>
	<description>tech stuff and then some</description>
	<lastBuildDate>Fri, 10 Sep 2010 03:42:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>iPadDevCampNYC April 16th &#8211; 18th Recap!</title>
		<link>http://iamnotrobot.com/2010/04/ipaddevcampnyc-april-16th-20th-recap/</link>
		<comments>http://iamnotrobot.com/2010/04/ipaddevcampnyc-april-16th-20th-recap/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 15:06:13 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[events]]></category>

		<guid isPermaLink="false">http://iamnotrobot.com/?p=671</guid>
		<description><![CDATA[This weekend I had the opportunity to participate in iPadDevCampNYC. The event took place both in San Jose and NYC simultaneously and brought together  iPhone developers, designers, testers, and development enthusiast. I&#8217;m pretty sure I spotted a few incognito parents with their teens as well. Here&#8217;s a quick recap of the events: Day 1 The first [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fiamnotrobot.com%2F2010%2F04%2Fipaddevcampnyc-april-16th-20th-recap%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fiamnotrobot.com%2F2010%2F04%2Fipaddevcampnyc-april-16th-20th-recap%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p style="text-align: left;"><a href="http://iamnotrobot.com/wp-content/uploads/2010/04/logo-ipaddev.png"><img class="aligncenter size-full wp-image-693" title="logo-ipaddev" src="http://iamnotrobot.com/wp-content/uploads/2010/04/logo-ipaddev.png" alt="" width="493" height="122" /></a></p>
<p style="text-align: left;">This weekend I had the opportunity to participate in <a id="aptureLink_wXlAPv1OO2" href="http://www.ipaddevcampnyc.com/event/#about">iPadDevCampNYC</a>. The event took place both in San Jose and NYC simultaneously and brought together  iPhone developers, designers, testers, and development enthusiast. I&#8217;m pretty sure I spotted a few incognito parents with their teens as well. Here&#8217;s a quick recap of the events:</p>
<p><strong>Day 1<br />
<span style="font-weight: normal;">The first day was pretty much a mixer. We met at <a id="aptureLink_FA7rEIq6Qu" href="http://www.gigapixelcreative.com/">Gigapixel Creative </a> and there was music, booze, and few finger foods. I mingled a bit with a few people, however, it was a little too loud to carry any sort of real conversation, so I left early. Before I left, I was approached by a Barnes and Noble recruiter who traded my email address for a $20 Barnes and Noble Gift Card. Nice! </span></strong></p>
<p><strong>Day 2<br />
<span style="font-weight: normal;">The second day included a pretty insightful industry panel which include:</span></strong></p>
<ul>
<li>Moderator:Michael Prenez-Isbell, Director of Mobile Development at Blueswitch</li>
<li>Peter Costanzo, Dir. of Online Marketing for Perseus Books Group</li>
<li>Nina DeFrance, VP of Consumer Marketing for Forbes Digital</li>
<li>Tarik Sedkey, Chief Digital Officer, Young &amp; Rubicam</li>
<li>Douglas Gottlieb, VP of Digital, Barnes &amp; Noble</li>
</ul>
<p>The general take-away from this panel is that print and advertising wants in on the iPad. These companies need iPad/iPhone developers BAD. They have no idea what they are doing since this is uncharted territory. All panel members are highly optimistic about the iPad platform and the impact it will have on their products. They are ready to embrace the platform and just need some help from developers like us.</p>
<p>The hackathon also started on day 2. Essentially we were tasked with coming up with some sort of iPad project. I was sitting next to <a id="aptureLink_8D267zsrqU" href="http://twitter.com/luciuskwok">@luciuskwok</a> who I&#8217;ve known for quite some time (through twitter) and I gave him an idea for an extension to an existing project (HelTweetica) he was already working on. @<a id="aptureLink_Ef6FoB3Gvn" href="http://twitter.com/thomasalvarez">thomasalvarez</a> also joined our team and we quickly got to work.</p>
<p><strong>Day 3<br />
<span style="font-weight: normal;">On the third day we listened to two presentations. One by <a id="aptureLink_V9bi9zIndA" href="http://flurry.com">Flurry</a> and one by <a id="aptureLink_UeUclL52Yd" href="http://en.wikipedia.org/wiki/Barnes%20and%20Nobles">Barnes and Noble</a>.<br />
The Flurry talk was particularly interesting because Greg had some really insightful information into how users were behaving with the iPad. I wish I had the slides for the presentation (maybe they&#8217;ll post them) but hopefully you get the gist from the audio.</span></strong></p>
<p><strong><span style="font-weight: normal;">Listen to Greg Yardley, VP of Product, Flurry presentation below.<br />
</span></strong></p>
<p><strong><span style="font-weight: normal;"> Listen to the Barnes and Noble iPad app dev team speak about the B&amp;N app.<br />
</span></strong></p>
<p>Day three concluded with project presentations by all teams and we even won &#8220;Best Social App&#8221;. Once the app is live somewhere, I&#8217;ll be sure to share a link. There were some really great projects by other teams including a sound activated cookbook for turning pages, a really slick boom box, a quija board, a developer text-editor for the iPad, as well as a few others.</p>
<p>Below are a few pics from the presentations:</p>
<p><a href="http://iamnotrobot.com/wp-content/uploads/2010/04/IMG_12091.jpg"><img class="aligncenter size-full wp-image-675" title="IMG_1209" src="http://iamnotrobot.com/wp-content/uploads/2010/04/IMG_12091.jpg" alt="" width="640" height="480" /></a></p>
<p><a href="http://iamnotrobot.com/wp-content/uploads/2010/04/IMG_1211.jpg"><img class="aligncenter size-full wp-image-677" title="IMG_1211" src="http://iamnotrobot.com/wp-content/uploads/2010/04/IMG_1211.jpg" alt="" width="640" height="480" /></a><a href="http://iamnotrobot.com/wp-content/uploads/2010/04/IMG_1212.jpg"></a></p>
<p><a href="http://iamnotrobot.com/wp-content/uploads/2010/04/IMG_1212.jpg"><img class="aligncenter size-full wp-image-678" title="IMG_1212" src="http://iamnotrobot.com/wp-content/uploads/2010/04/IMG_1212.jpg" alt="" width="640" height="480" /></a></p>
<p><a href="http://iamnotrobot.com/wp-content/uploads/2010/04/IMG_1214.jpg"><img class="aligncenter size-full wp-image-679" title="IMG_1214" src="http://iamnotrobot.com/wp-content/uploads/2010/04/IMG_1214.jpg" alt="" width="640" height="480" /></a></p>
<p>Overall, the price of admission ($50) was a steal. They provided free food on both days (bagels, coffee, and OJ in the morning and Two-Boots pizza at lunch). Plus all the friends and contacts you make is well worth surrendering your weekend. Most importantly I&#8217;d like to thank the folks who put this event together. It was definitely a blast!</p>
]]></content:encoded>
			<wfw:commentRss>http://iamnotrobot.com/2010/04/ipaddevcampnyc-april-16th-20th-recap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://iamnotrobot.com/audio/Flurry_iPad_Presentation_41810.mp3" length="5783295" type="audio/mpeg" />
<enclosure url="http://iamnotrobot.com/audio/BN_iPad_Presentation_41810.mp3" length="26384760" type="audio/mpeg" />
		</item>
		<item>
		<title>The Indie iPad Developer&#8217;s Conundrum</title>
		<link>http://iamnotrobot.com/2010/04/the-indie-ipad-developers-conundrum/</link>
		<comments>http://iamnotrobot.com/2010/04/the-indie-ipad-developers-conundrum/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 19:25:40 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[internet hardware]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://iamnotrobot.com/?p=646</guid>
		<description><![CDATA[We&#8217;ve all heard the success stories. Indie developers quitting their day job and striking it rich with an iPhone app they developed. Learning how table views work, working with tab controllers and pinging web service APIs into the wee hours of the night. Then making a killing in the app store. With the introduction of [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fiamnotrobot.com%2F2010%2F04%2Fthe-indie-ipad-developers-conundrum%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fiamnotrobot.com%2F2010%2F04%2Fthe-indie-ipad-developers-conundrum%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://iamnotrobot.com/wp-content/uploads/2010/04/ipad-3g.jpg"><img class="aligncenter size-full wp-image-661" title="ipad-3g" src="http://iamnotrobot.com/wp-content/uploads/2010/04/ipad-3g.jpg" alt="" width="640" height="373" /></a></p>
<p>We&#8217;ve all heard the success stories. Indie developers quitting their day job and striking it rich with an iPhone app they developed. Learning how table views work, working with tab controllers and pinging web service APIs into the wee hours of the night. Then making a killing in the app store. With the introduction of the iPad, these stories may come even less often &#8230;</p>
<p><strong>What indie iPhone Developers need to learn now:<br />
</strong> <span style="font-weight: normal;">As soon as I began looking at the iPad SDK, I realized &#8230; I&#8217;m gonna need a UI/UX Designer now.With the introduction of the iPad, existing indie iPhone developers will be forced to either:</span></p>
<p>A) learn photoshop and illustrator<br />
B) join forces with a good graphic designer.</p>
<p>Creating a compelling and engaging user experience on the iPad is significantly more difficult than on the iPhone. The iPad screen real estate is greater and you (the developer) need to fill that space up with visually striking goodness.</p>
<p><strong>iPad Launch Day<br />
</strong> Today the iPad launched and many developers will head to Apple Stores (or hopefully receive their shipments on time) and instantly load up their iPad app they&#8217;ve been previously working on using the simulator. The screen real estate is larger which makes for your potentially mediocre app to look even more medicore. Especially next to some of the apps that have already been <a href="http://www.apple.com/ipad/app-store/" target="_blank">showcased</a>. Not to mention a few of the ridiclously awesome apps include: <a href="http://mashable.com/2010/04/01/netflix-ipad/" target="_blank">Netflix</a> and <a href="http://gizmodo.com/5507723/marvel-comics-on-the-ipad" target="_blank">Marvel</a>.</p>
<p><strong>What about you Jeff ?<br />
</strong> At  first sight, I could not place the iPad in my day to day. I already have a kindle and really enjoy reading books on it because of the e-ink. However, <a href="http://indiancode.net" target="_blank">Indian Code</a> clients have already gained interest and will undoubtedly be requesting services for this platform. So I will eventually need to own one pretty soon and will need to work closely with graphic designers to produce awesome releases. You can get away with using lots of the built in visual elements, but at some point , if you&#8217;ll really want to push the envelope and you&#8217;re gonna have to use visual elements outside of the SDK.</p>
<p>All in all, it is a great time to be an iPhone, iPad , and Mac developer. There is a lot of work out there if you seek it. Find yourself a good graphic designer who can be your partner and focus on making beautiful things! So go now and get started!</p>
]]></content:encoded>
			<wfw:commentRss>http://iamnotrobot.com/2010/04/the-indie-ipad-developers-conundrum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using restful_authentication on heroku cloud hosting</title>
		<link>http://iamnotrobot.com/2009/12/using-restful_authentication-on-heroku-cloud-hosting/</link>
		<comments>http://iamnotrobot.com/2009/12/using-restful_authentication-on-heroku-cloud-hosting/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 05:17:52 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[web hosting]]></category>
		<category><![CDATA[heroku]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://iamnotrobot.com/?p=488</guid>
		<description><![CDATA[A few days ago I began setting up a rails app that was in need of some user authentication. A friend of mine recommended looking at @technoweenie&#8216;s restful_authentication plugin and I already had messed around with heroku&#8217;s hosting service. Now it was time to combine the two. I initially installed the restful_auth plugin using the &#8216;git [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fiamnotrobot.com%2F2009%2F12%2Fusing-restful_authentication-on-heroku-cloud-hosting%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fiamnotrobot.com%2F2009%2F12%2Fusing-restful_authentication-on-heroku-cloud-hosting%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>A few days ago I began setting up a rails app that was in need of some user authentication. A friend of mine recommended looking at <a id="aptureLink_iQsaT3HHTF" href="http://twitter.com/technoweenie">@technoweenie</a>&#8216;s <a href="http://github.com/technoweenie/restful-authentication">restful_authentication plugin</a> and I already had messed around with <a href="http://heroku.com" target="_blank">heroku&#8217;s</a> hosting service. Now it was time to combine the two.</p>
<p>I initially installed the restful_auth plugin using the &#8216;git clone&#8217; method and my app worked perfectly fine on my local machine. However, when I uploaded the app to heroku, I was hitting a few errors. The first error was that my app was failing to launch because it could not find a const named &#8216;User::Authenticated&#8217; &#8230; how&#8217;s that possible? I installed the plugin , shouldn&#8217;t it just know where to look for it? Well it appears that if you use the &#8216;git clone&#8217; method to install the plugin, it will not work on heroku. You must install the plugin by running &#8216;script/plugin install git://github.com/technoweenie/restful-authentication.git&#8217;. This will put all the pieces in the correct place. ALSO, be sure to change the name of the folder downloaded to &#8216;restful_authentication&#8217; .. that is &#8230; change the hypen to an underscore. Once I changed that, I re-launched my app on heroku using the command &#8216;heroku restart&#8217;, and I hit a (NameError). Seems the &#8216;script/plugin install&#8217; command didn&#8217;t create an file called user_observer.rb that should be placed in the models directory. I&#8217;m not sure if this is a bug at this point but this is the workaround I used:</p>
<p>drop a file named user_observer.rb in your /app/models/ directory and put this code in it:</p>
<p><span style="font-family: Helvetica, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: normal; font-size: 12px;">class UserObserver &lt; ActiveRecord::Observer</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">def after_create(user)</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">UserMailer.deliver_signup_notification(user) if user.not_using_openid?</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">end</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">def after_save(user)</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">UserMailer.deliver_activation(user) if user.recently_activated? &amp;&amp; user.not_using_openid?</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">end</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">end</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">Once I had this file in place, my app launched successfully and now included full user authentication.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">YAY!</p>
]]></content:encoded>
			<wfw:commentRss>http://iamnotrobot.com/2009/12/using-restful_authentication-on-heroku-cloud-hosting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing MySQL Ruby gem on SnowLeopard</title>
		<link>http://iamnotrobot.com/2009/11/installing-mysql-ruby-gem-on-snowleopard/</link>
		<comments>http://iamnotrobot.com/2009/11/installing-mysql-ruby-gem-on-snowleopard/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 04:41:45 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[snowleopard]]></category>

		<guid isPermaLink="false">http://iamnotrobot.com/?p=432</guid>
		<description><![CDATA[In my efforts to teach myself Ruby on Rails I ran into a bit of a snag installing the ruby mysql gem. After doing a bit a research I finally found this helpful bit: http://www.icoretech.org/2009/08/install-mysql-and-mysql-ruby-gem-on-snow-leopard-64-bit/ Following these steps fixed the issue. Weeeee!!!]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fiamnotrobot.com%2F2009%2F11%2Finstalling-mysql-ruby-gem-on-snowleopard%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fiamnotrobot.com%2F2009%2F11%2Finstalling-mysql-ruby-gem-on-snowleopard%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="aligncenter" title="dolphins" src="http://ucsc.citris-uc.org/files/imce-u10/mysql.png" alt="" width="491" height="497" /></p>
<p>In my efforts to teach myself Ruby on Rails I ran into a bit of a snag installing the ruby mysql gem. After doing a bit a research I finally found this helpful bit:</p>
<p><a id="aptureLink_9cassUJf46" href="http://www.icoretech.org/2009/08/install-mysql-and-mysql-ruby-gem-on-snow-leopard-64-bit/">http://www.icoretech.org/2009/08/install-mysql-and-mysql-ruby-gem-on-snow-leopard-64-bit/</a></p>
<p>Following these steps fixed the issue. Weeeee!!!</p>
<blockquote>
<pre style="outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; width: auto; white-space: pre; clear: none; overflow-x: visible; overflow-y: visible; font-size: 12px; line-height: 1.333; font-family: monospace; background-position: initial initial; padding: 0px; margin: 0px; border: 0px initial initial;"></pre>
</blockquote>
<pre style="outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; width: auto; white-space: pre; clear: none; overflow-x: visible; overflow-y: visible; font-size: 12px; line-height: 1.333; font-family: monospace; background-position: initial initial; padding: 0px; margin: 0px; border: 0px initial initial;"></pre>
]]></content:encoded>
			<wfw:commentRss>http://iamnotrobot.com/2009/11/installing-mysql-ruby-gem-on-snowleopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Not seeing NSLog messages after using NSPipe?</title>
		<link>http://iamnotrobot.com/2009/11/not-seeing-nslog-messages-after-using-nspipe/</link>
		<comments>http://iamnotrobot.com/2009/11/not-seeing-nslog-messages-after-using-nspipe/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 23:29:19 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[NSLog]]></category>
		<category><![CDATA[NSPipe]]></category>
		<category><![CDATA[NSTask]]></category>
		<category><![CDATA[objective-c]]></category>

		<guid isPermaLink="false">http://iamnotrobot.com/?p=404</guid>
		<description><![CDATA[Yesterday I was working on some code that made use of NSTask and  ran into a tiny, yet annoying, issue. Essentially the code block I was working on would search a directory on the machine and return an array of paths to items which matched the results of the call to the &#8216;find&#8217; tool. The [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fiamnotrobot.com%2F2009%2F11%2Fnot-seeing-nslog-messages-after-using-nspipe%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fiamnotrobot.com%2F2009%2F11%2Fnot-seeing-nslog-messages-after-using-nspipe%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Yesterday I was working on some code that made use of NSTask and  ran into a tiny, yet annoying, issue. Essentially the code block I was working on would search a directory on the machine and return an array of paths to items which matched the results of the call to the &#8216;find&#8217; tool. The only problem I found is that when I called</p>
<blockquote><p><strong>[task setStandardOutput: pipe];</strong></p></blockquote>
<p>The results from the &#8216;find&#8217; command were dumped in the console.app and not in the debugger. After a little investigation, I realized I simply was just missing this call:</p>
<blockquote><p><strong>[task setStandardInput:[NSPipe pipe]];</strong></p></blockquote>
<p>After making this adjustment, NSLog was now appearing back in Xcode&#8217;s debugger/console. Yay!<br />
Here it is in action:</p>
<pre class="brush: c">

#import &quot;FileFindAppDelegate.h&quot;

@implementation FileFindAppDelegate

@synthesize window;

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {

[self findFiles];

}

-(void)findFiles
{
NSTask *task = [[NSTask alloc] init];
[task setLaunchPath: @&quot;/bin/sh&quot;];

NSArray *arguments = [NSArray arrayWithObjects:@&quot;-c&quot;, @&quot;/usr/bin/find /Users/jeffsoto/Desktop/Files -name *title*&quot;, nil];
[task setArguments: arguments];

NSPipe *pipe = [NSPipe pipe];
[task setStandardOutput: pipe];
[task setStandardInput:[NSPipe pipe]];

NSFileHandle *file;
file = [pipe fileHandleForReading];

[task launch];

NSData *data;
data = [file readDataToEndOfFile];

NSString *string = [[NSString alloc] initWithData:data encoding: NSUTF8StringEncoding];

NSArray *array = [[NSArray alloc] initWithArray:[string componentsSeparatedByString:@&quot;\n&quot;]];

NSLog(@&quot;Found %i matching files&quot;, [array count]-1);

int i;

for(i=0; i &lt; [array count]-1; i++)
{

NSLog(@&quot;Found this path %@&quot;, [array objectAtIndex:i]);
}

}

[task release];
[string release];
[array release];

@end
</pre>
]]></content:encoded>
			<wfw:commentRss>http://iamnotrobot.com/2009/11/not-seeing-nslog-messages-after-using-nspipe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
