How and what class/file do I modify to insert avCocoa NSButton programmatically? (for the Mac not the iPhone)
I have tried the following but it doesn’t work: (Request for member “view” in something not a structure or union.)
- (void)windowControllerDidLoadNib:(NSWindowController *) aController
{
[super windowControllerDidLoadNib:aController];
// Add any code here that needs to be executed once the windowController has loaded the document's window.
NSButton *btn = [NSButton alloc];
[self.view addSubview:btn];
}
You have to add it to the window’s content view.