Search code examples
monodevelopxibmonomac

When to use MainWindow and when to use MainWindowController in MonoMac


I have just started developing on MonoMac and MonoDevelop 3.0, and I'm really confused on where I am supposed to be routing up my IBOutlets and actions. In all of the samples, MainWindowController is used to wire everything up. However, I just could not get anything to work except using MainWindow instead.

Also, I'm a little thrown off because in several of the samples MainWindowController shows up as a sub-folder to the nib. But when I new up a solution, it shows up as its own file.

Any help appreciated

Edit: I uploaded the project to GitHub: https://github.com/ucsbmrf/MonoMacTest


Solution

  • Most of the issue probably stems from the fact that most tutorials you find on the web still reference older versions of MonoDevelop, XCode and IB. The new workflow for setting up a test project can be found in this post which takes into account the changes which incorporated Interface Builder into XCode in v4.2+.