Hi everybody, I just found out the hard way, that initializing the MacRuby runtime seems to alter the values returned by -[NSObject hash] even for objects of non-ruby classes. In my Objective-C application, I am loading the MacRuby runtime lazily once the user needs to load a Ruby plug-in. This immediately destroys all NSDictionaries/NSMapTables/NSSets that have been filled with objects before the loading. The only workaround I have found so far, is to call -[MacRuby sharedRuntime] early at the start of the application, but this results in an unnecessarily slower startup time and a larger memory footprint. Is the change in the hash values meant by design or might it be a bug in MacRuby?
Cheers Frank _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel