From: Dave H. <gr...@gr...> - 2006-01-03 15:45:49
|
On Jan 3, 2006, at 6:17, Rupert BARROW wrote: > > Le 3 janv. 06 =E0 05:42, rub...@li... = a=20 > =E9crit : > >> To: rub...@li... >> From: Dave Howell <gr...@gr...> >> Date: Mon, 2 Jan 2006 16:45:48 -0800 >> Subject: [Rubycocoa-talk] Building NSMatrix from scratch. >> Reply-To: rub...@li... >> >> OK, building my cells from scratch isn't working either. >> >> matrixFrame =3D NSRect.new > > I expect you should have initialized your OSX.NSRect thus : > matrixFrame =3D NSRect.alloc.init I thought so too. I tried that first, but RBException_NoMethodError - undefined method `alloc' for=20 OSX::NSRect:Class (OSX::OCException) RBException_NoMethodError - undefined method `init' for=20 OSX::NSRect:Class (OSX::OCException) Also, using NSRect.new, if I p matrixFrame I see this in the log: #<OSX::NSRect:0x28aa7c @size=3D#<OSX::NSSize:0x28a874 = @height=3D40.0,=20 @width=3D28.0>, @origin=3D#<OSX::NSPoint:0x28a888 @x=3D20.0, @y=3D20.0>> Which is exactly what the NSRect frame looks like from a matrix built=20 in Interface Builder. So as far as I can tell, my matrixFrame is set up=20= correctly. {shrug} |