11 Apr
2010
11 Apr
'10
1:12 a.m.
I'm trying to learn Macruby and am using Apple's page as a guide: http://developer.apple.com/mac/articles/scriptingautomation/cocoaappswithmac... 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?