<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in RubyCocoa | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/76/posts</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>chapters about bindings posted by Jakub Suder @ Sun, 30 Nov 2008 23:30:14 -0000</title>
      <description>&lt;p&gt;I&amp;#8217;ve sent Brian an email this week with some opinions about the book and he asked me to write about that here too, so that we can see what other readers think&amp;#8230;&lt;/p&gt;


	&lt;p&gt;What I wrote is that the last few chapters about bindings seemed a bit boring too me. I liked the first chapters very much &amp;#8211; they introduced a lot of cool new stuff and let me see Cocoa in action. But I think the last chapters went into too much detail about how bindings work internally, and that was information which may not really be essential for novice Cocoa programmers &amp;#8211; if you know very little about Cocoa and almost nothing about ObjC, then it&amp;#8217;s probably enough for you to know that if you connect A to B in Interface Builder, then A will change if B changes and vice versa; exactly how it does this and what methods are being called is less important. If someone really wants to know, they can find some more specialized tutorials, like &lt;a href="http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/"&gt;Apple&amp;#8217;s bindings tutorial&lt;/a&gt; . I&amp;#8217;ve read Aaron Hillegass&amp;#8217;s book about Cocoa in ObjC recently, and he wrote a lot less about bindings in it&amp;#8230;&lt;/p&gt;


	&lt;p&gt;What do you think, does this make sense?&lt;/p&gt;</description>
      <pubDate>Sun, 30 Nov 2008 23:30:14 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:1485:6469</guid>
      <author>Jakub Suder</author>
      <link>http://forums.pragprog.com/forums/76/topics/1485</link>
    </item>
    <item>
      <title>Does MacRuby change the game? posted by Joseph Grace @ Sat, 29 Nov 2008 04:00:13 -0000</title>
      <description>&lt;p&gt;Nathan, I agree with you that MacRuby changes the game.  I have broached the subject of repurposing the book to MacRuby (instead of RubyCocoa).  However, I believe the publisher decided to go with RubyCocoa for first edition (though I did not ask for the reason(s)).  It could be that some legacy code already exists in RubyCocoa, or that they do not want to be accused of bait-and-switching prepurchasers (PDF) of the book with a repurposed title.  Frankly, it sounds like putting the wrong color hardwood floor in a building just because it was spec&amp;#8217;ced that way, even though everyone knows it needs to be switched out, but that&amp;#8217;s just me!-)  Books and book publishing are hard and tricky.  So I don&amp;#8217;t ask.&lt;/p&gt;


	&lt;p&gt;On the MacRuby side, from Laurent Sansonetti&amp;#8217;s talk at RubyConf 2008 earlier this month, he still intends to release &amp;#8220;the first production-ready version [MacRuby 0.4] by the end of the year&amp;#8230; by production-ready I mean you can really use it to write applications&amp;#8221;.  That quotation is taken from his RubyConf talk earlier this month (November 6, 2008) about 1/3 the way through when he&amp;#8217;s discussing the slide, &amp;#8220;MacRuby&amp;#8221;.  For the talk, see &lt;a href="http://rubyconf2008.confreaks.com/macruby-ruby-for-your-mac.html"&gt;http://rubyconf2008.confreaks.com/macruby-ruby-for-your-mac.html&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;MacRuby will support Ruby 1.9 but not (I think) 1.8.  I&amp;#8217;m not sure whether RubyCocoa will ever support 1.9, but it does support 1.8.  Actually, come to think of it, I believe Sansonetti has made claims to support RubyCocoa for some time, so perhaps that means RubyCocoa will support 1.9 (as does MacRuby).&lt;/p&gt;


	&lt;p&gt;Cheers,&lt;/p&gt;


	&lt;p&gt;= Joe =&lt;/p&gt;</description>
      <pubDate>Sat, 29 Nov 2008 04:00:13 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:687:6445</guid>
      <author>Joseph Grace</author>
      <link>http://forums.pragprog.com/forums/76/topics/687</link>
    </item>
    <item>
      <title>Using .new vs .init.alloc posted by christophe @ Wed, 26 Nov 2008 08:33:07 -0000</title>
      <description>&lt;p&gt;i have come up with a way &lt;br /&gt;to just write new instead&lt;br /&gt;of alloc.init&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://pastie.org/324314"&gt;http://pastie.org/324314&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;it also calls initialize&lt;br /&gt;so that you can code as&lt;br /&gt;you normally would.&lt;/p&gt;


	&lt;p&gt;in cases where you just&lt;br /&gt;want to subclass NSObject&lt;br /&gt;and then build a little&lt;br /&gt;class hierarchy under your&lt;br /&gt;subclass this comes in real &lt;br /&gt;handy. in more complicated&lt;br /&gt;cases i&amp;#8217;m not too sure yet.&lt;/p&gt;


	&lt;p&gt;still too green behind the ears.&lt;br /&gt;any comments?&lt;/p&gt;</description>
      <pubDate>Wed, 26 Nov 2008 08:33:07 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:516:6379</guid>
      <author>christophe</author>
      <link>http://forums.pragprog.com/forums/76/topics/516</link>
    </item>
    <item>
      <title>statusbar/speaking-statusbar-solution.rb posted by Brian Marick @ Wed, 19 Nov 2008 14:51:45 -0000</title>
      <description>&lt;p&gt;That looks like a leftover. Probably I was using this solution to explain the difference between RubyCocoa&amp;#8217;s alloc.init() and pure Ruby&amp;#8217;s initialize(). If you remove the initialize() you&amp;#8217;ll see that all works fine.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;ve changed the code; it&amp;#8217;ll appear with the next beta.&lt;/p&gt;


	&lt;p&gt;Thanks.&lt;/p&gt;</description>
      <pubDate>Wed, 19 Nov 2008 14:51:45 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:1398:6157</guid>
      <author>Brian Marick</author>
      <link>http://forums.pragprog.com/forums/76/topics/1398</link>
    </item>
    <item>
      <title>statusbar/speaking-statusbar-solution.rb posted by Frantz Gauthier @ Wed, 19 Nov 2008 10:35:28 -0000</title>
      <description>&lt;p&gt;Just a simple question about this piece of code  :&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
class SpeechController &amp;lt; NSObject
  attr_reader :number_of_utterances   # (4)

  def init
    super_init
    @synthesizer = NSSpeechSynthesizer.alloc.init
    @number_of_utterances = 0   # (5)
    self
  end

  def initialize
    @synthesizer = NSSpeechSynthesizer.alloc.init
  end

...
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Why instanciate &lt;code&gt;NSSpeechSynthesizer&lt;/code&gt; both in &lt;code&gt;int&lt;/code&gt; and &lt;code&gt;initialize&lt;/code&gt; methods ?&lt;/p&gt;</description>
      <pubDate>Wed, 19 Nov 2008 10:35:28 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:1398:6146</guid>
      <author>Frantz Gauthier</author>
      <link>http://forums.pragprog.com/forums/76/topics/1398</link>
    </item>
    <item>
      <title>Aleksey Gureiev - errata p. 134 posted by Aleksey Gureiev @ Sun, 02 Nov 2008 07:21:26 -0000</title>
      <description>&lt;p&gt;Jakub,&lt;/p&gt;


	&lt;p&gt;Re &amp;#8220;alias&amp;#8221; method, indeed. Thanks for the hints.&lt;/p&gt;


	&lt;p&gt;Further research: I replaced the line with&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;alias inspect puts&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;... and noticed that during the start there were 10 more empty lines added to the log. Replacing the same line with this chunk of code&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;  def log_stack
    raise
  rescue =&amp;gt; e
    puts "---", e.backtrace.join("\n")
  end

  alias inspect log_stack
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;... gave more info on where the &lt;em&gt;inspect&lt;/em&gt; method was being called from:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;[Session started at 2008-11-02 09:15:55 +0200.]
2008-11-02 09:15:55.745 Fenestra[17998:10b] RubyCocoa version is 0.13.2.
2008-11-02 09:15:55.747 Fenestra[17998:10b] Using Ruby files in /Users/alg/tmp/rc/code/fenestra/preferred-list/app.
---
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/TranslatorPreference.rb:49:in `inspect'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `ocm_send'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `method_missing'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:14:in `init'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17:in `NSApplicationMain'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17
---
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/TranslatorPreference.rb:49:in `inspect'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `ocm_send'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `method_missing'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:14:in `init'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17:in `NSApplicationMain'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17
---
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/TranslatorPreference.rb:49:in `inspect'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `ocm_send'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `method_missing'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:106:in `collect_archived'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:105:in `collect'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:105:in `collect_archived'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:20:in `init'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17:in `NSApplicationMain'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17
---
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/TranslatorPreference.rb:49:in `inspect'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `ocm_send'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `method_missing'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:106:in `collect_archived'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:105:in `collect'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:105:in `collect_archived'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:20:in `init'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17:in `NSApplicationMain'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17
---
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/TranslatorPreference.rb:49:in `inspect'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `ocm_send'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `method_missing'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:80:in `with_translator_cache'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:43:in `collect'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:1132:in `each'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:43:in `collect'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:79:in `with_translator_cache'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:26:in `display_name_of_favorite_translator'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/controllers/AppChoiceController.rb:24:in `awakeFromNib'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17:in `NSApplicationMain'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17
---
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/TranslatorPreference.rb:49:in `inspect'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:80:in `unarchiveObjectWithData'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:80:in `with_translator_cache'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:43:in `collect'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:1132:in `each'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:43:in `collect'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:79:in `with_translator_cache'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:26:in `display_name_of_favorite_translator'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/controllers/AppChoiceController.rb:24:in `awakeFromNib'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17:in `NSApplicationMain'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17
---
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/TranslatorPreference.rb:49:in `inspect'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:80:in `unarchiveObjectWithData'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:80:in `with_translator_cache'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:43:in `collect'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:1132:in `each'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:43:in `collect'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:79:in `with_translator_cache'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:26:in `display_name_of_favorite_translator'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/controllers/AppChoiceController.rb:24:in `awakeFromNib'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17:in `NSApplicationMain'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17
---
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/TranslatorPreference.rb:49:in `inspect'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:80:in `unarchiveObjectWithData'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:80:in `with_translator_cache'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:43:in `collect'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:1132:in `each'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:43:in `collect'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:79:in `with_translator_cache'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:33:in `translator_display_names'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/controllers/AppChoiceController.rb:31:in `fill_combo_box'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/controllers/AppChoiceController.rb:25:in `awakeFromNib'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17:in `NSApplicationMain'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17
---
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/TranslatorPreference.rb:49:in `inspect'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:80:in `unarchiveObjectWithData'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:80:in `with_translator_cache'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:43:in `collect'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:1132:in `each'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:43:in `collect'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:79:in `with_translator_cache'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:33:in `translator_display_names'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/controllers/AppChoiceController.rb:31:in `fill_combo_box'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/controllers/AppChoiceController.rb:25:in `awakeFromNib'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17:in `NSApplicationMain'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17
---
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/TranslatorPreference.rb:49:in `inspect'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:80:in `unarchiveObjectWithData'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:80:in `with_translator_cache'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:43:in `collect'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:1132:in `each'
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:43:in `collect'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:79:in `with_translator_cache'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:33:in `translator_display_names'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/controllers/AppChoiceController.rb:31:in `fill_combo_box'
/Users/alg/tmp/rc/code/fenestra/preferred-list/app/controllers/AppChoiceController.rb:25:in `awakeFromNib'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17:in `NSApplicationMain'
/Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Haven&amp;#8217;t analyzed the traces, but they look like having a good clue.&lt;/p&gt;</description>
      <pubDate>Sun, 02 Nov 2008 07:21:26 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:1290:5797</guid>
      <author>Aleksey Gureiev</author>
      <link>http://forums.pragprog.com/forums/76/topics/1290</link>
    </item>
    <item>
      <title>Aleksey Gureiev - errata p. 134 posted by Jakub Suder @ Sat, 01 Nov 2008 22:49:14 -0000</title>
      <description>&lt;p&gt;Aleksey,&lt;/p&gt;


	&lt;p&gt;there is something called alias, and it is used with function names without colons:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
&amp;gt;&amp;gt; alias xx puts
=&amp;gt; nil
&amp;gt;&amp;gt; xx "test" 
test
=&amp;gt; nil
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;I understand that this is more like a built-in language feature than a library method call&amp;#8230; I think it works more or less the same as alias_method.&lt;/p&gt;


	&lt;p&gt;I have no idea though why you&amp;#8217;re getting that error. I wonder why there&amp;#8217;s this &amp;#8216;method_missing&amp;#8217; line in the middle&amp;#8230; who is trying to call what on that class?...&lt;/p&gt;</description>
      <pubDate>Sat, 01 Nov 2008 22:49:14 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:1290:5795</guid>
      <author>Jakub Suder</author>
      <link>http://forums.pragprog.com/forums/76/topics/1290</link>
    </item>
    <item>
      <title>Aleksey Gureiev - errata p. 134 posted by Aleksey Gureiev @ Sat, 01 Nov 2008 16:56:18 -0000</title>
      <description>&lt;p&gt;Yes it&amp;#8217;s weird. Here&amp;#8217;s the dump from the unmodified version of preferred-list app that I was running at the moment:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
[Session started at 2008-11-01 18:49:20 +0200.]
2008-11-01 18:49:20.587 Fenestra[16574:10b] RubyCocoa version is 0.13.2.
2008-11-01 18:49:20.590 Fenestra[16574:10b] Using Ruby files in /Users/alg/tmp/rc/code/fenestra/preferred-list/app.
2008-11-01 18:49:20.741 Fenestra[16574:10b] TranslatorPreference#description: NoMethodError: undefined method `name' for nil:NilClass
    /Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/TranslatorPreference.rb:44:in `description'
    /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `inspect'
    /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `ocm_send'
    /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `method_missing'
    /Users/alg/tmp/rc/code/fenestra/preferred-list/app/preferences/Preferences.rb:14:in `init'
    /Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17:in `NSApplicationMain'
    /Users/alg/tmp/rc/code/fenestra/preferred-list/build/Debug/Fenestra.app/Contents/Resources/rb_main.rb:17
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;I did some further research and it appears that the cause of the trouble is this line in TranslatorPreference.rb:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
  alias inspect to_s
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;I think you meant&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
  alias :inspect :to_s
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;... but even this isn&amp;#8217;t really correct since there&amp;#8217;s no such method &amp;#8220;alias&amp;#8221; (or is it?). You probably meant &amp;#8220;alias_method&amp;#8221;?&lt;/p&gt;


	&lt;p&gt;Hope it helps!&lt;/p&gt;</description>
      <pubDate>Sat, 01 Nov 2008 16:56:18 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:1290:5792</guid>
      <author>Aleksey Gureiev</author>
      <link>http://forums.pragprog.com/forums/76/topics/1290</link>
    </item>
    <item>
      <title>Aleksey Gureiev - errata p. 134 posted by Brian Marick @ Fri, 31 Oct 2008 16:22:17 -0000</title>
      <description>&lt;p&gt;(Trying to reach Aleksey because I can&amp;#8217;t send mail.)&lt;/p&gt;


	&lt;p&gt;I don&amp;#8217;t see how &lt;code&gt;description&lt;/code&gt; could be called before the initialization finishes. Does the problem happen when you&amp;#8217;re running the preferred-list app as it came out of the code files? Can I get a stack dump?&lt;/p&gt;</description>
      <pubDate>Fri, 31 Oct 2008 16:22:17 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:1290:5774</guid>
      <author>Brian Marick</author>
      <link>http://forums.pragprog.com/forums/76/topics/1290</link>
    </item>
    <item>
      <title>Leopard/Tiger RubyCocoa App posted by Gregory Clarke @ Thu, 30 Oct 2008 00:15:31 -0000</title>
      <description>&lt;p&gt;I did try standaloneify for a few experimental apps, and it mostly gave me an app that would try to run, then quit. With some trial and error I got an app that does run on both Leopard and Tiger, with some cavaets:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;standaloneify modifies rb_main.rb, but I needed to comment out the line $LOAD_PATH.reject! { |d| d.index(File.dirname(COCOA_APP_RESOURCES_DIR))!=0 } in order to get the app to run&lt;/li&gt;
		&lt;li&gt;I got an error trying to require the libxml gem, but others such as Hpricot, Builder and &lt;span class="caps"&gt;REXML&lt;/span&gt; caused no problem&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;I&amp;#8217;m assuming I could use the new folder structure created by standaloneify as a basis for setting up an Xcode project, and use the modified rb_main.rb instead of the rb_main.rb and path-setting.rb mentioned in the book.&lt;/p&gt;


	&lt;p&gt;Apart from the libxml problem (which I&amp;#8217;m not using yet anyway), I&amp;#8217;m pretty confident that I&amp;#8217;ll be able to build a single app for both OS&amp;#8217;s!&lt;/p&gt;</description>
      <pubDate>Thu, 30 Oct 2008 00:15:31 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:1229:5731</guid>
      <author>Gregory Clarke</author>
      <link>http://forums.pragprog.com/forums/76/topics/1229</link>
    </item>
    <item>
      <title>Does MacRuby change the game? posted by Nathan Youngman @ Tue, 28 Oct 2008 18:54:31 -0000</title>
      <description>&lt;p&gt;MacRuby is what makes using Ruby for Cocoa compelling. If I wanted to use a very-high-level-language and didn&amp;#8217;t mind the scripting bridge issues, I would stick with PyObjC. It&amp;#8217;s been around since the days of NeXT and is proven. MacRuby does change the game, and I think it would be wise to focus this book towards (next months) MacRuby 0.4 or the first stable 0.5 release. If that&amp;#8217;s not in the cards, perhaps I&amp;#8217;ll just wait for the 2nd edition. &lt;sup&gt;_&lt;/sup&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 28 Oct 2008 18:54:31 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:687:5687</guid>
      <author>Nathan Youngman</author>
      <link>http://forums.pragprog.com/forums/76/topics/687</link>
    </item>
    <item>
      <title>Leopard/Tiger RubyCocoa App posted by Brian Marick @ Sun, 26 Oct 2008 19:27:36 -0000</title>
      <description>&lt;p&gt;Did you try standaloneify?&lt;/p&gt;


	&lt;p&gt;You can install RubyGems in your third-party/lib package. Then it should be able to load gems in third-party/gems.&lt;/p&gt;</description>
      <pubDate>Sun, 26 Oct 2008 19:27:36 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:1229:5620</guid>
      <author>Brian Marick</author>
      <link>http://forums.pragprog.com/forums/76/topics/1229</link>
    </item>
    <item>
      <title>Leopard/Tiger RubyCocoa App posted by Gregory Clarke @ Thu, 23 Oct 2008 17:01:13 -0000</title>
      <description>&lt;p&gt;I know this topic won&amp;#8217;t be covered in the RubyCocoa book, but since the latest RubyCocoa app I&amp;#8217;m working on will preferably need to run on Tiger as well as Leopard, I thought I&amp;#8217;d try to work it out for myself.&lt;/p&gt;


	&lt;p&gt;After a few evenings of frustration, I&amp;#8217;ve managed to build an app in Xcode 3 on Leopard that runs on both Leopard and Tiger (10.4.8 or later). Here&amp;#8217;s the outline:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;build a Tiger-compatible version of the RubyCocoa framework as outlined at &lt;a href="http://rubycocoa.sourceforge.net/MultiPlatformRubyCocoa"&gt;http://rubycocoa.sourceforge.net/MultiPlatformRubyCocoa&lt;/a&gt; (the Tiger version is larger than the Leopard version)&lt;/li&gt;
	&lt;/ul&gt;


	&lt;ul&gt;
	&lt;li&gt;copy this framework into the app bundle by using a new Copy Files Phase in Xcode (see &lt;a href="http://rubycocoa.sourceforge.net/EmbedRubyCocoa"&gt;http://rubycocoa.sourceforge.net/EmbedRubyCocoa&lt;/a&gt; for details)&lt;/li&gt;
	&lt;/ul&gt;


	&lt;ul&gt;
	&lt;li&gt;add gems or libraries to the app bundle as shown in Chapter 10 of the RubyCocoa book&lt;/li&gt;
	&lt;/ul&gt;


	&lt;ul&gt;
	&lt;li&gt;change your Xcode project&amp;#8217;s &lt;span class="caps"&gt;SDK&lt;/span&gt; to use Mac &lt;span class="caps"&gt;OS X 10&lt;/span&gt;.4&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;I used a single library for testing, but I&amp;#8217;m not sure what happens with gems, since I don&amp;#8217;t believe Tiger has rubygems by default.&lt;/p&gt;


	&lt;p&gt;Insights and comments appreciated.&lt;/p&gt;


	&lt;p&gt;Greg&lt;/p&gt;</description>
      <pubDate>Thu, 23 Oct 2008 17:01:13 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:1229:5572</guid>
      <author>Gregory Clarke</author>
      <link>http://forums.pragprog.com/forums/76/topics/1229</link>
    </item>
    <item>
      <title>RubyCocoa Forum posted by Brian Marick @ Mon, 20 Oct 2008 14:07:47 -0000</title>
      <description>&lt;p&gt;&lt;a href="https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk"&gt;https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 20 Oct 2008 14:07:47 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:1205:5478</guid>
      <author>Brian Marick</author>
      <link>http://forums.pragprog.com/forums/76/topics/1205</link>
    </item>
    <item>
      <title>RubyCocoa Forum posted by Eric Berry @ Sun, 19 Oct 2008 22:53:41 -0000</title>
      <description>&lt;p&gt;Is there a forum out there where RubyCocoa developers hang out and ask/answer questions?  Or is this is?&lt;/p&gt;


	&lt;p&gt;If so, I&amp;#8217;m trying to tie in a progress bar into a file being downloaded.  Does anyone have any examples of how to create this?  I couldn&amp;#8217;t find it in the book as it is so far.&lt;/p&gt;


	&lt;p&gt;Eric Berry&lt;/p&gt;</description>
      <pubDate>Sun, 19 Oct 2008 22:53:41 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:1205:5467</guid>
      <author>Eric Berry</author>
      <link>http://forums.pragprog.com/forums/76/topics/1205</link>
    </item>
    <item>
      <title>Apple's MacRuby beginning to come out of the closet! posted by Joseph Grace @ Sun, 19 Oct 2008 10:48:50 -0000</title>
      <description>&lt;p&gt;&lt;a href="http://developer.apple.com/mac/articles/scriptingautomation/cocoaappswithmacruby.html"&gt;http://developer.apple.com/mac/articles/scriptingautomation/cocoaappswithmacruby.html&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;Apple is beginning to bring macruby out of the closet (to replace RubyCocoa).  macruby replaces the bridge of RubyCocoa with the garbage collector of Objective-C and direct bindings to Cocoa.  As a consequence, macruby works with &lt;span class="caps"&gt;OSX&lt;/span&gt; like ObjC does, understands ObjC and vice versa, works with IB and Xcode (as RubyCocoa), and is a welcome upgrade to (great but still cumbersome) Scripting Bridge on &lt;span class="caps"&gt;OSX&lt;/span&gt;.  Industrial strength macruby will make MacRuby the scripting language of choice on &lt;span class="caps"&gt;OSX&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;macruby will be a very welcome replacement for RubyCocoa.&lt;br /&gt;macruby will also be a very welcome alternative to AppleScript.&lt;/p&gt;


	&lt;p&gt;&lt;span class="caps"&gt;FYI&lt;/span&gt;, MacRuby is approaching its first full-featured release at the end of the 2008 (or beginning 2009, but is already very useful and powerful.&lt;/p&gt;


	&lt;p&gt;&lt;del&gt;=&lt;/del&gt;&lt;/p&gt;


	&lt;p&gt;In other news,&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;&lt;a href="http://www.infoq.com/news/2008/10/llvmruby-roundup-yarv2llvm"&gt;http://www.infoq.com/news/2008/10/llvmruby-roundup-yarv2llvm&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;A highly performant version of ruby is taking shape (early milestone(s)) based on llvm (a compiler technology apple is or is planning to use for &lt;span class="caps"&gt;OSX&lt;/span&gt;) and now has ruby bindings as well.  llvm looks promising as a radical performance upgrade for macruby!  Bindings + speed = ObjC performance (or something like that).  The future of ruby on &lt;span class="caps"&gt;OSX&lt;/span&gt; is looking very sweet indeed.&lt;/p&gt;


	&lt;p&gt;&lt;span class="caps"&gt;FYI&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;I hope this book changes its focus from RubyCocoa to the forward-looking macruby to avoid any unnecessary obsolescence before it even ships.&lt;/p&gt;</description>
      <pubDate>Sun, 19 Oct 2008 10:48:50 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:1200:5450</guid>
      <author>Joseph Grace</author>
      <link>http://forums.pragprog.com/forums/76/topics/1200</link>
    </item>
    <item>
      <title>Code example help (B1.0) posted by Brian Marick @ Thu, 16 Oct 2008 15:20:01 -0000</title>
      <description>&lt;p&gt;Is the problem running code out of the code distribution? If so, what code? If not, can you send me the code that breaks when you require, plus the fixed code? I&amp;#8217;m at &lt;a href="mailto:marick@exampler.com"&gt;marick@exampler.com&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 16 Oct 2008 15:20:01 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:520:5364</guid>
      <author>Brian Marick</author>
      <link>http://forums.pragprog.com/forums/76/topics/520</link>
    </item>
    <item>
      <title>Code example help (B1.0) posted by peter schr&#246;der @ Thu, 16 Oct 2008 13:08:39 -0000</title>
      <description>&lt;p&gt;i am still having problems with code that uses require within class-methods.&lt;/p&gt;


	&lt;p&gt;in these cases i had to pull up the require statement to file-level or up to requiring class.&lt;/p&gt;</description>
      <pubDate>Thu, 16 Oct 2008 13:08:39 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:520:5362</guid>
      <author>peter schr&#246;der</author>
      <link>http://forums.pragprog.com/forums/76/topics/520</link>
    </item>
    <item>
      <title>Code example help (B1.0) posted by peter schr&#246;der @ Thu, 16 Oct 2008 13:06:03 -0000</title>
      <description>&lt;p&gt;i dont think so. i tried it with selfcompiled version 1.8.6 of ruby, guided by this tutorial:&lt;br /&gt;&lt;a href="http://hivelogic.com/articles/2007/02/ruby-rails-mongrel-mysql-osx"&gt;http://hivelogic.com/articles/2007/02/ruby-rails-mongrel-mysql-osx&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 16 Oct 2008 13:06:03 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:520:5361</guid>
      <author>peter schr&#246;der</author>
      <link>http://forums.pragprog.com/forums/76/topics/520</link>
    </item>
    <item>
      <title>Code example help (B1.0) posted by Brian Marick @ Wed, 15 Oct 2008 23:56:03 -0000</title>
      <description>&lt;p&gt;Perhaps it was an older version of Ruby, one that didn&amp;#8217;t have Rubygems included in the distribution?&lt;/p&gt;</description>
      <pubDate>Wed, 15 Oct 2008 23:56:03 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:520:5346</guid>
      <author>Brian Marick</author>
      <link>http://forums.pragprog.com/forums/76/topics/520</link>
    </item>
    <item>
      <title>Code example help (B1.0) posted by peter schr&#246;der @ Tue, 14 Oct 2008 13:58:13 -0000</title>
      <description>&lt;p&gt;i got the following error:&lt;/p&gt;


	&lt;p&gt;&lt;code&gt;./sandbox.rb:36:in `require': no such file to load -- rubygems (LoadError)    &amp;lt;br /&amp;gt;from ./sandbox.rb:36:in `adjust_gem_path'    &amp;lt;br /&amp;gt;from ./sandbox.rb:50    &amp;lt;br /&amp;gt;from sandbox-tests.rb:3:in `require'    &amp;lt;br /&amp;gt;from sandbox-tests.rb:3&lt;/code&gt;&lt;/p&gt;


	&lt;p&gt;i think the root of the error was a self compiled ruby version on my mac. i removed all the home-brewn stuff and reinstallted ruby using finks apt-get. after updating gems everything worked as expected.&lt;/p&gt;</description>
      <pubDate>Tue, 14 Oct 2008 13:58:13 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:520:5287</guid>
      <author>peter schr&#246;der</author>
      <link>http://forums.pragprog.com/forums/76/topics/520</link>
    </item>
    <item>
      <title>code for beta 2 posted by Jakub Suder @ Sat, 20 Sep 2008 15:02:07 -0000</title>
      <description>&lt;p&gt;It&amp;#8217;s probably because of the update in the sandbox file.&lt;/p&gt;</description>
      <pubDate>Sat, 20 Sep 2008 15:02:07 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:793:4606</guid>
      <author>Jakub Suder</author>
      <link>http://forums.pragprog.com/forums/76/topics/793</link>
    </item>
    <item>
      <title>code for beta 2 posted by Brian Marick @ Fri, 19 Sep 2008 13:18:45 -0000</title>
      <description>&lt;p&gt;That&amp;#8217;s a little disturbing, given that the code hasn&amp;#8217;t changed.&lt;/p&gt;</description>
      <pubDate>Fri, 19 Sep 2008 13:18:45 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:793:4584</guid>
      <author>Brian Marick</author>
      <link>http://forums.pragprog.com/forums/76/topics/793</link>
    </item>
    <item>
      <title>code for beta 2 posted by Jakub Suder @ Thu, 18 Sep 2008 21:27:19 -0000</title>
      <description>&lt;p&gt;&lt;span class="caps"&gt;FYI&lt;/span&gt; &amp;#8211; I&amp;#8217;ve just tried running counting-webapp from code for beta 3, and it works perfectly well now (previous version used to throw some exception).&lt;/p&gt;</description>
      <pubDate>Thu, 18 Sep 2008 21:27:19 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:793:4577</guid>
      <author>Jakub Suder</author>
      <link>http://forums.pragprog.com/forums/76/topics/793</link>
    </item>
    <item>
      <title>Does MacRuby change the game? posted by Bernard Kenik @ Sun, 14 Sep 2008 04:04:55 -0000</title>
      <description>&lt;p&gt;I am a newbie to both iMac and MacRuby and obviously also a newbie to RubyCocoa.&lt;/p&gt;


	&lt;p&gt;I would like this book (which I have purchased) to also cover MacRuby.&lt;/p&gt;


	&lt;p&gt;Thank you for your consideration in this matter.&lt;/p&gt;</description>
      <pubDate>Sun, 14 Sep 2008 04:04:55 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:76:687:4532</guid>
      <author>Bernard Kenik</author>
      <link>http://forums.pragprog.com/forums/76/topics/687</link>
    </item>
  </channel>
</rss>
