App is run, but can't see the GUI


#1

Hi all,
When I finished the chapter 13 User Defaults. When I don’t change the state-restoration in page 216, everything is good.
Curiosity cause me to change the state restoration according to the book. After I disable state restoration, the app is run, but I can’t see the GUI of app. The app only appear in the dock.
Any suggestions? Institution told me I destroy the sate in some way.

lood339


#2

This would more than likely because:

  1. You have ‘Save Windows & State’ enabled on Lion+
  2. You have ‘Create New Document’ unticked, so it’s working as it should :smiley:

When you run it, press ⌘ + N (to make a new document) and voila, it should appear.