[Mono-osx] Error creating NSView in MonoDevelop

GarethB garethbaker11 at ntlworld.com
Sat Dec 8 18:11:13 UTC 2012


Ive been trying to make an basic OSX app with a single window containing a
custom NSView. Starting from one of the templates in MonoDevelop, I double
click on the MainWindow.xib to start XCode. Add a new file (FGBView.m and
.h) to Xcode. Add a custom view to the window and change its object to the
FGBView object. When I go back to MonoDevelop and it tries to synchronise
the project I'm getting an error:

System.ArgumentNullException: Argument cannot be null.
Parameter name: path1
  at System.IO.Path.Combine (System.String path1, System.String path2)
[0x000c6] in
/private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.IO/Path.cs:126 
  at MonoDevelop.MacDev.XcodeSyncing.XcodeMonitor.ScanForAddedFiles
(IProgressMonitor monitor,
MonoDevelop.MacDev.XcodeSyncing.XcodeSyncBackContext ctx,
System.Collections.Generic.HashSet`1 knownFiles, System.String directory,
System.String relativePath) [0x00066] in
/Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0-series/e159cf08/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeMonitor.cs:214 
  at MonoDevelop.MacDev.XcodeSyncing.XcodeMonitor.GetChanges
(IProgressMonitor monitor,
MonoDevelop.MacDev.ObjCIntegration.NSObjectInfoService infoService,
MonoDevelop.Projects.DotNetProject project) [0x00070] in
/Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0-series/e159cf08/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeMonitor.cs:256 
  at MonoDevelop.MacDev.XcodeSyncing.XcodeProjectTracker.SyncXcodeChanges
(IProgressMonitor monitor) [0x00017] in
/Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0-series/e159cf08/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeProjectTracker.cs:487 

When I quit MonoDevelop and look into the Xcode project its now empty!

I'm using the latest versions of Mono and MonoDevelop on OSX Lion (old black
MacBook).

Am I doing something wrong or is there a problem?

Thanks
GarethB



--
View this message in context: http://mono.1490590.n4.nabble.com/Error-creating-NSView-in-MonoDevelop-tp4657709.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list