From: Rupert B. <rup...@fr...> - 2006-01-03 14:18:09
|
Le 3 janv. 06 =C3=A0 05:42, rub...@li... = =20 a =C3=A9crit : > 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 > matrixFrame.size.height =3D 40.0 > matrixFrame.size.width =3D 28.0 > matrixFrame.origin.x =3D 20.0 > matrixFrame.origin.y =3D 20.0 > newMatrix =3D = OSX::NSMatrix.alloc.initWithFrame(matrixFrame) > > What the log says is > > NSMatrix(0x5c0cc60) - NSView not correctly initialized. Did you =20= > forget > to call super? > > I don't understand the question. Does it not like my NSRect? The > program keeps running, but the matrix doesn't appear in the window. Cheers, Rupert |