[Mono-osx] .exe using Winforms and Monobjc/Cocoa (success)

Laurent Etiemble laurent.etiemble at gmail.com
Mon Dec 15 14:49:40 EST 2008


Hello,

My comments inline.

Regards, Laurent Etiemble.

2008/12/15 Andrew Brehm <ajbrehm at gmail.com>

>
> My second test of Monobjc is a program (StupidWordCounter, the same example
> I
> used for Cocoa#) that uses a NIB file or a Windows.Forms GUI depending on
> which platform it runs on. (It checks for a directory
> "/System/Library/Frameworks/Cocoa.framework" to determine if it is running
> on Mac OS.)
>
> I made a few screenshots of the development process in Visual Studio 2008
> and Xcode 3. I'll upload them in tutorial form in the next few days and
> give
> the URL here.
>
> Remaining issues:
>
> 1. The path to the NIB file as used by Monobjc confuses. Apparently this
> past must be relative to the .app bundle containing the assembly. This is
> useful for the finished program but makes testing/debugging difficult.


This is the official way to locate the NIB and Monobjc conforms to.



>
>
> 2. I still have an awful lot of platform-specific code in two classes for
> each GUI. I wonder if there is an elegant practice for dealing with this
> (and whether using native GUIs rather than a crossplatform GUI toolkit is
> really the way to go).
>
> 3. Can Monobjc use XIB files? If yes, how? Interacting with NIB files is a
> hassle with Xcode 3, which by default wants XIB files and doesn't even let
> you create IB 2.x NIB files easily.


XIB is only a development format, not a deployment one. Quoted from
http://developer.apple.com/documentation/developertools/conceptual/IB_UserGuide/BuildingaNibFile/chapter_3_section_2.html
:

"The xib file format was also introduced in Interface Builder 3.0 as a
development-time format and was conceived as a way to provide tighter
integration with your Xcode projects, particularly in the areas of SCM
support, diff support, and refactoring. Xcode automatically converts files
in the xib format to the nib format at build time."

If you look at the build process in XCode, you will see that the XIB file is
compiled into a NIB one. Monobjc build tasks allow you to do the same.
Check http://www.monobjc.net/index.php?page=building-tools for more details
on the <ibtool/> task.



>
> But all-in-all I remain very convinced that Monobjc is the greatest thing
> since sliced .NET.
>
> Any chance that it become part of the default Mono distribution? Novell?
> Buy
> Monobjc?


>
> And if anyone from the Monobjc team reads this: is there a way I can help?
> I
> am a bad programmer but excellent user. Can I at least donate or something?


You can help by simply using Monobjc. We need the users' feedback to refine
the API and find bugs.
You can also make a donation via PayPal (the button is on the download
page).


>
>
> Happy Holidays.
>
> Andrew
> --
> View this message in context:
> http://www.nabble.com/.exe-using-Winforms-and-Monobjc-Cocoa-%28success%29-tp21011520p21011520.html
> Sent from the Mono - OSX mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20081215/414039e2/attachment.html 


More information about the Mono-osx mailing list