From: Dave H. <gr...@gr...> - 2006-01-06 08:50:38
|
On Jan 5, 2006, at 18:51, Dave Howell wrote: > 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.) > Never mind. I found it. inside my NSWindowController object... self.window.contentView.addSubview(MyMatrix.alloc.init(parameters)) |