App Delegate not getting updated automatically

I unchecked use storyboards, and checked create document based application. I was able to see the .XIB files. However, when I drag the push button instance into the GUI, nothing changes in the app delegate. It’s as if nothing happened.

Appdelegate.m just shows the following. The book indicates that it should show [self.window addSubview:self.insertButton];. However even when I try to type this in manually it doesn’t work as it apparently doesn’t know what Window is.

  • (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    // Insert code here to initialize your application
    }

  • (void)applicationWillTerminate:(NSNotification *)aNotification {
    // Insert code here to tear down your application
    }

in main there is nothing that calls the app delegate. It just shows:

int main(int argc, const char * argv[]) {
return NSApplicationMain(argc, argv);

//return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));

}

So i tried passing the app delegate name as a parameter (see commented code), but NSApplication doesn’t take that many parameters.

Did anyone else run into this issue?

Because of this I’m absolutely stuck in the mud. I can’t connect the GUI with the app logic.

JenMossRoy

I had the same problem here and didn’t find the solution.