Hello,
There are a lot of mistakes that can produce this error. Anyway, could
you check the following points (even if some of them seem trivial):
- Check the code in your main method looks like the one described at
http://www.monobjc.net/index.php?page=bootstrapping .
- Check the structure of your bundle is correct (see
http://www.monobjc.net/index.php?page=anatomy-of-an-application). It
is important to use the correct structure, otherwise the resources are
not found.
- How do you launch your application ? From the Finder or from the
command line ? If from the command line, do you use the startup script
<YourApp>.app/Contents/MacOS/<YourApp> ?
You can also check your application against one of the sample
application (like SimpleCocoaApp), to see if you can spot a difference
or use it as a starting point. Let me know if you find something.
Regards, Laurent Etiemble.
2008/11/15 marc hoffman <[EMAIL PROTECTED]>:
> question,
>
> i'm giving Monobjc a first spin and it seems that no matter what i do,
> Monobj fails to load my NIB file (which is properly embedded in the
> \Resources folder of my .app), with the message "Error Loading NIB file"
> emitted to the console, and the app shows with an empy main menu and no UI
> (unsurprisingly).
>
> this happens exactly the same whether i specify the proper name of my NIB
> ("Interface.nib") to the LoadNib call, or whether i specify some fantasy
> name ("foo.nib"). i also tried omitting the .nib extension, including the
> "/Resources/" path, etc,. same error. Which makes me think it doesn't
> actually *find* the NIB in the first place (rather than finding but not
> liking it).
>
> my app is virtually identical to an empty working Cocoa# app (except for
> chaged class names & namespaces, and different code in Main(), which works
> fine.
>
> i tried with the latest 2.0.296.0 release, as well as the one before; i'm
> referencing the 2.0 dlls.
>
> any suggestions? what could i be missing?
>
> thanx,
> marc hoffman
>
> RemObjects Software
> The Infrastructure Company
> http://www.remobjects.com
>
>
> On Nov 11, 2008, at 4:01 PM, Laurent Etiemble wrote:
>
>> Hello,
>>
>> We are proud to announce that a new release of Monobjc bridge is
>> available (http://www.monobjc.net/). The Monobjc bridge provides the
>> necessary tools to develop and run .NET applications (written in C#,
>> VB.NET, etc.) that interact with Objective-C frameworks and libraries
>> under Mac OS X. Existing Objective-C classes can be used in .NET code
>> in an almost transparent manner.
>>
>> This release brings:
>> - a better support for NSCell subclassing
>> - new symbols in NSApplication, NSCell, NSEvent and NSScroller
>> - a fix of the IL generation under Mono 2.0 that prevents Drag and
>> Drop from working
>>
>> Downloads: http://www.monobjc.net/index.php?page=downloads
>> Tutorials : http://www.monobjc.net/index.php?page=tutorials
>> Samples : http://www.monobjc.net/index.php?page=samples
>>
>> Feedback and remarks are welcomed !!!
>>
>> Regards, Laurent Etiemble.
>> _______________________________________________
>> Mono-osx mailing list
>> [EMAIL PROTECTED]
>> http://lists.ximian.com/mailman/listinfo/mono-osx
>
>