[MacRuby-devel] Simple Example Fails
Robert Love
rblove_lists at comcast.net
Sat Apr 10 18:12:31 PDT 2010
I'm trying to learn Macruby and am using Apple's page as a guide:
http://developer.apple.com/mac/articles/scriptingautomation/cocoaappswithmacruby.html
I'm using macirb to follow the example and getting complete different answers. Is the web page wrong? Is Macruby wrong? Am I doing something wrong?
irb(main):001:0> h = {}
=> {}
irb(main):002:0> h.class
=> NSMutableDictionary
irb(main):003:0> h.setObject 'foo', forKey:42
=> {1=>"foo"}
irb(main):004:0>
Why isn't the key 42 like the Apple web page shows?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20100410/6f0fd715/attachment.html>
More information about the MacRuby-devel
mailing list