applicationShouldOpenUntitledFile


#1

I entered the code for the applicationShouldOpenUntitledFile, did the control click from MainMenu.xib File’s owner delegate to the appController .

If I place a breakpoint in this code, I can see that this code is never called.

I never have a new untitled file when I launch the application.

I can open and existing application or make a new one manually but I don’t get one on launch.


#2

Did you remember to edit the scheme so that the application does not use persistent state restoration? Figure 13.5 on page 217 shows how it would have looked in an older version of Xcode, but he current one has the same effect. If the first line is checked, persistent state restoration is not done. Don’t forget to set the check box on the preferences panel you built.


#3

I completely missed that checkbox setting. Thanks.