I created a new MonoMac project and opened MainWindow.xib using Interface Builder (Xcode). After a simple change (renamed window name), the project can no longer be created. Does anyone know how to fix this?
I am using MonoDevelop 2.6, MonoFramework-2.10.1 with Xcode 4.0 on OS X 10.6.7.
This error message is:
2011-03-28 18: 45: 39.986 HelloWorld [30332: 613] Unknown Window class MainWindow in the Interface Builder file, instead create a common window
Unhandled exception: System.InvalidCastException: cannot be selected from source type to destination type. in HelloWorld.MainWindowController.get_Window () <0x0002e> on HelloWorld.AppDelegate.FinishedLaunching (MonoMac.Foundation.NSObject) <0x0003d> at (dynamic method object). [HelloWorld.AppDelegate.Void FinishedLaunching (MonoMac.Foundation.NSObject)] (MonoMac.Foundation.NSObject, MonoMac.ObjCRuntime.Selector, MonoMac.Foundation.NSObject) <0x00033> at (wrapper for managed objects). [HelloWorld.AppDelegate.Void FinishedLaunching (MonoMac.Foundation.NSObject)] (MonoMac.Foundation.NSObject, MonoMac.ObjCRuntime.Selector, MonoMac.Foundation.NSObject) <0x000eb> at (wrapper managed-to-native. NSApplication.NSApplicationMain (int, string []) <0x00003> in MonoMac.AppKit.NSApplication.Main (string []) <0x00017> in HelloWorld.MainClass.Main (string []) <0x00019>
Thanks for any help.
Greetings
PS: I found troubleshooting help http://monotouch.net/Documentation/Troubleshoot#Unknown_class_XXXX_in_Interface_Builder_filebut . I suppose this does not count in this case, since the MainWindow class already exists by default ..
source share