You can use a MainWindow.xib you want to, we just changed the pattern that the templates use. The difference is in how the AppDelegate is created.
In the old templates, Main would call UIApplication.Main (args); which loads the main xib as specified in the Info.plist, and instantiates the custom objects in it, which must include the app delegate. Of course, that xib can create other objects too and connect them to the app delegate, such as a window, views, view controllers, etc. In the new templates, we call UIApplication.Main (args, null, "AppDelegate"); which doesn't use a main xib, instead it initializes the application directly using a new instance of the "AppDelegate" app delegate. Then, that app delegate's FInishedLaunching would typically create the window and load the views, controller, etc, most likely from xibs or storyboards. There's nothing to stop you doing the old way if you prefer it, we just don't have templates for it, since the new way is somewhat easier to follow for new users, and doesn't mandate the use of Interface Builder. -- Michael On Fri, Oct 14, 2011 at 3:49 PM, Jeff Stedfast <[email protected]> wrote: > Hi MonkeyWorld, > > I am Cc'ing Michael Hutchinson who is probably the best person to > answer your question. I believe that he is on vacation until mid-next > week, but he may respond sooner if he checks his email in the > meantime. > > Jeff > > On Thu, Oct 13, 2011 at 5:15 PM, MonkeyWorld <[email protected]> wrote: >> Downloaded iOS 5 sdk + mono develop 2.8 and MT 5.0 today and struggling with >> getting my app to start up now. Â MainWindow.xib no longer auto created and >> while I can take my controllers out of my main window.xib I'd prefer to >> leave as is. >> >> Anyone had trouble with lack of MainWindow.xib and also need to create >> RootViewController in FinishedLaunching - I'm a bit stumped by the >> differences at moment as got so much of my initial interface in >> MainWindow.xib >> >> So is there a way to force it to load and react much as per iOS 4 ?? >> >> Cheers >> >> -- >> View this message in context: >> http://monotouch.2284126.n4.nabble.com/iOS-5-MainWindow-xib-help-needed-tp3902962p3902962.html >> Sent from the MonoTouch mailing list archive at Nabble.com. >> _______________________________________________ >> MonoTouch mailing list >> [email protected] >> http://lists.ximian.com/mailman/listinfo/monotouch >> > _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
