Where is my mainwindow.xib




















That said, I'm only a beginner in iOS development myself, so I would appreciate my observation being corrected if I'm wrong. You can find the documents on developer. I just created a blank tab bar project in Xcode 4 and the MainWindow. Maybe you deleted it by accident. Try creating a new project from scratch, it should be there. There's a nice video tutorial on Youtube explaining how to re-create MainWindow.

For the reason of MainWindow. Xcode use it to cache information about classes. The cache changes often. Elements are added when class. I have not reverse-engineered Xcode; I made these observations by experimenting with Xcode and storyboard files.

And delete the old MainMenu. The new xib will show up as expected. I'm not sure if it's just that my Xcode is horribly corrupted, but here's what else I had to do to get my application to run successfully:.

Otherwise, you'll get output in your console that says Unable to load nib file. See pics to compare. This will get your blank app window to pop up when you run the program. Drag an Object from the object library to the list of objects in the interface builder.

Define its class as your app delegate class name and the object should rename itself to 'App Delegate'. Now your app delegate code will work.

If you are currently using this method, then you don't need to change a thing. You can replace NSDocumentDirectory with many other constants. Is a MainWindow. Instead of that I had to choose empty project. And I don't like the way it's done.

IS there more gentle , normal way of getting MainWindow. If you are using Snow Leopard I also believe many of the example apps from Big Nerd Ranch are available online. So you can download the sample apps which would have MainWindow. Hopefully they'll update the Big Nerd Ranch books to incorporate storyboarding and Xcode 4. Apple has a bad habit of changing things so often that it might not be economical or wise to be completely up to date with the latest changes.



0コメント

  • 1000 / 1000