<?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: Quick, Convert Your RubyCocoa To MacRuby!</title>
	<atom:link href="http://blog.mikelaurence.com/posts/2009/05/quick-convert-your-rubycocoa-to-macruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mikelaurence.com/posts/2009/05/quick-convert-your-rubycocoa-to-macruby/</link>
	<description>Mental Meanderings for the Masses</description>
	<lastBuildDate>Sat, 09 Jan 2010 01:48:40 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jesper</title>
		<link>http://blog.mikelaurence.com/posts/2009/05/quick-convert-your-rubycocoa-to-macruby/comment-page-1/#comment-29</link>
		<dc:creator>Jesper</dc:creator>
		<pubDate>Sun, 06 Dec 2009 10:39:59 +0000</pubDate>
		<guid isPermaLink="false">http://mikelaurence.com/?p=43#comment-29</guid>
		<description>Good overview.

Just to nitpick, Objective-C does not have &quot;named parameters&quot;, it has selectors. [x a:1 a:-2 a:@&quot;z&quot;] uses a valid selector, and Objective-C and MacRuby both deal with that. Hell, even [x :1 :2 :3] uses a valid selector (no names for any of the parts), although I have no idea how either RubyCocoa or MacRuby solves declaring that. (It&#039;s spectacularly bad form while overlapping with being valid.)</description>
		<content:encoded><![CDATA[<p>Good overview.</p>
<p>Just to nitpick, Objective-C does not have &#8220;named parameters&#8221;, it has selectors. [x a:1 a:-2 a:@"z"] uses a valid selector, and Objective-C and MacRuby both deal with that. Hell, even [x :1 :2 :3] uses a valid selector (no names for any of the parts), although I have no idea how either RubyCocoa or MacRuby solves declaring that. (It&#8217;s spectacularly bad form while overlapping with being valid.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Laurence</title>
		<link>http://blog.mikelaurence.com/posts/2009/05/quick-convert-your-rubycocoa-to-macruby/comment-page-1/#comment-14</link>
		<dc:creator>Mike Laurence</dc:creator>
		<pubDate>Thu, 28 May 2009 19:44:05 +0000</pubDate>
		<guid isPermaLink="false">http://mikelaurence.com/?p=43#comment-14</guid>
		<description>@Laurent - thanks for the notes! I&#039;ve updated the post.

@Rafael - I&#039;m actually in the midst of figuring that sort of thing out myself. It seems that the best way to go from obj-c =&gt; ruby is using the performRubySelector method, but unfortunately documentation is sparse right now (I believe the feature is brand new in MacRuby 0.4, so not too many people have played around with it yet.) However, I&#039;m in the middle of a discussion on the MacRuby mailing list about it, so maybe I&#039;ll get it figured out soon and create some documentation myself!</description>
		<content:encoded><![CDATA[<p>@Laurent &#8211; thanks for the notes! I&#8217;ve updated the post.</p>
<p>@Rafael &#8211; I&#8217;m actually in the midst of figuring that sort of thing out myself. It seems that the best way to go from obj-c => ruby is using the performRubySelector method, but unfortunately documentation is sparse right now (I believe the feature is brand new in MacRuby 0.4, so not too many people have played around with it yet.) However, I&#8217;m in the middle of a discussion on the MacRuby mailing list about it, so maybe I&#8217;ll get it figured out soon and create some documentation myself!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rafael Bugajewski</title>
		<link>http://blog.mikelaurence.com/posts/2009/05/quick-convert-your-rubycocoa-to-macruby/comment-page-1/#comment-13</link>
		<dc:creator>Rafael Bugajewski</dc:creator>
		<pubDate>Mon, 25 May 2009 12:06:13 +0000</pubDate>
		<guid isPermaLink="false">http://mikelaurence.com/?p=43#comment-13</guid>
		<description>Hi,

thanks for this great summary. I have a slightly different question: Is there any documentation / possibility to use Ruby classes and execute their methods right from Objective C? I&#039;ve seen some examples that use NSClassFromString(), but they didn&#039;t work in my case.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>thanks for this great summary. I have a slightly different question: Is there any documentation / possibility to use Ruby classes and execute their methods right from Objective C? I&#8217;ve seen some examples that use NSClassFromString(), but they didn&#8217;t work in my case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurent Sansonetti</title>
		<link>http://blog.mikelaurence.com/posts/2009/05/quick-convert-your-rubycocoa-to-macruby/comment-page-1/#comment-12</link>
		<dc:creator>Laurent Sansonetti</dc:creator>
		<pubDate>Sat, 23 May 2009 17:56:21 +0000</pubDate>
		<guid isPermaLink="false">http://mikelaurence.com/?p=43#comment-12</guid>
		<description>Hi Mike,

Very nice article! Thanks for taking the time to write this!

2 small things:

1) It is also possible to do NSTableview.new in RubyCocoa. However this example is confusing, since you are supposed to go through -[NSView initWithFrame:] when creating views. 

2) If you want to overwrite the default -[NSObject init] method in MacRuby, you must still return self. However if you decide to overwrite #initialize (which -init calls], it is not necessary to return self here (as in pure Ruby).

Would you be interested to convert your blog post as an article for our website (http://www.macruby.org/documentation.html)? I think it would be awesome to have a &quot;MacRuby for RubyCocoa programmers&quot; short guide.

Laurent</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>Very nice article! Thanks for taking the time to write this!</p>
<p>2 small things:</p>
<p>1) It is also possible to do NSTableview.new in RubyCocoa. However this example is confusing, since you are supposed to go through -[NSView initWithFrame:] when creating views. </p>
<p>2) If you want to overwrite the default -[NSObject init] method in MacRuby, you must still return self. However if you decide to overwrite #initialize (which -init calls], it is not necessary to return self here (as in pure Ruby).</p>
<p>Would you be interested to convert your blog post as an article for our website (<a href="http://www.macruby.org/documentation.html)?" rel="nofollow">http://www.macruby.org/documentation.html)?</a> I think it would be awesome to have a &#8220;MacRuby for RubyCocoa programmers&#8221; short guide.</p>
<p>Laurent</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->