Laurent Sansonetti
lsans****@apple*****
Tue Jan 9 11:25:00 JST 2007
On Jan 9, 2007, at 1:59 AM, Laurent Sansonetti wrote: > I also fixed some bugs reported by another user. I think that we > should make a new micro release as soon as possible, because in those > bugs there is a very nasty one that can be seen as a regression. I also fixed a new bug. When doing class MyClass def foo # some code end end If MyClass wasn't already imported, the #foo code would be evaluated within a wrong temporary Object class. The wrapping code was a bit naive, I found a better way of wrapping the methods, but it's unfortunately using a silly hack (properly adjusting the right class to the unbound method object). I nevertheless added it in SVN, and now the problem is addressed. Example code: require 'osx/cocoa' include OSX class NSTableView def myMethod p selectedRow end end NSTableView.alloc.initWithFrame(NSZeroRect).myMethod Before exception, now the expected result (-1). Laurent