|
From: kimura wataru<ki...@us...> - 2006-01-05 15:03:45
|
Hi, OSX::NSRect#new generates a NSRect object. OSX::NSRect.new(origin_x, origin_y, size_widhth, size_height) Mon, Jan 2, 2006 4:45:48 PM, Dave Howell wrote: >OK, building my cells from scratch isn't working either. > > matrixFrame = NSRect.new > matrixFrame.size.height = 40.0 > matrixFrame.size.width = 28.0 > matrixFrame.origin.x = 20.0 > matrixFrame.origin.y = 20.0 > newMatrix = OSX::NSMatrix.alloc.initWithFrame(matrixFrame) > >What the log says is > > NSMatrix(0x5c0cc60) - NSView not correctly initialized. Did you 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. > This message is a warning not an error. The view is initialized correctly and you can ignore the message. When RubyCocoa generantes a instance of subclass of NSView, this message is displayed. I think that is a bug of RubyCocoa but to solve this problem is difficult. -- kimura wataru |