From: John L. <jo...@jo...> - 2006-01-03 20:41:28
|
>> I expect you should have initialized your OSX.NSRect thus : >> matrixFrame = NSRect.alloc.init > > I thought so too. I tried that first, but > > RBException_NoMethodError - undefined method `alloc' for > OSX::NSRect:Class (OSX::OCException) > RBException_NoMethodError - undefined method `init' for > OSX::NSRect:Class (OSX::OCException) I haven't done all that much with ruby-cocoa lately, but as I recall, NSRect is a Ruby class, not an Objective-C class. And I remember using #to_a to convert it to a format that Cocoa methods seemed to like. Of course, I could be all wrong here. --John |