From: Dave H. <gr...@gr...> - 2006-01-06 02:52:03
|
On Jan 5, 2006, at 7:03, kimura wataru wrote: >> >> 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. > Aha. So if I'm making this new NSView object, how does Cocoa know in which window (or rather, which contentView of which window) I want this new NSMatrix to appear? That's my first guess as to why I can't see it: I haven't "put it into the window" yet. (My Cocoa Programming book doesn't seem to think anybody would ever want to create these things programmatically.) |