Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
Ximian GNOME GUI OS X Operating Systems Software Windows

Mono's Cocoa# Underway, GTK# Takes on Windows.Forms 378

Gentu writes "OSNews posted some exclusive screenshots of a new project in the Mono community: Cocoa#. Apparently there are a couple of Apple engineers helping out the project that allows developers to create graphical Cocoa applications under Mac OS X using the C#, Python or Basic language. Mono seems to be doing well in the Windows land too, allowing developers to use GTK# instead of Windows.Forms to create multi-platform apps."
This discussion has been archived. No new comments can be posted.

Mono's Cocoa# Underway, GTK# Takes on Windows.Forms

Comments Filter:
  • Yikes! (Score:5, Funny)

    by Anonymous Coward on Friday August 13, 2004 @12:25AM (#9955740)
    I got a headache just reading the headline. Give us old fogies a break, we're used to seeing the hash mark at the beginning of the line...
  • by miguel ( 7116 ) on Friday August 13, 2004 @12:26AM (#9955742) Homepage
    I wanted to mention that our path to indepedence
    clearly goes through Gtk#, but we realize the
    importance of giving users binary compatibility
    so we are actively developing Windows.Forms and
    Visual Basic.NET (gasp) for Mono.

    A new from scratch implementation has started with
    four of the top Mono developers that are now
    locked up in Provo Utah working around the clock
    to delivery the new implementation of Windows.Forms
    (our previous Wine-based approach having too many
    Mono/Wine problems to solve).

    Miguel.
    • by Anonymous Coward
      while you are at it, feel free to improve Windows.Forms. Microsoft's version of it has some odd limitations, and considering they are planning to replace Windows.Forms with a complete re-write, they are not spending any time fixing these things.

      For example, it is supposedly impossible to have a context menu on a treeview that responds properly to both the mouse right-click and the context menu keyboard key (without resorting to Win32). If anyone has got this to work, please tell how..
      • by Matt - Duke '05 ( 321176 ) on Friday August 13, 2004 @02:42AM (#9956273)
        Perhaps actually trying to accomplish what you claim is impossible might help you out a bit. This took me about 30 seconds to do:

        using System;
        using System.Drawing;
        using System.Windows.Forms;

        namespace TreeTest {
        public class TreeTest : Form {
        [STAThread]
        public static int Main(string[] args) {
        Application.Run(new TreeTest());
        return 0;
        }

        public TreeTest() {
        tree = new Tree();
        tree.Dock = DockStyle.Fill;
        Controls.Add(tree);
        Text = "TreeTest";
        }

        private Tree tree;
        }

        public class Tree : TreeView {
        public Tree() {
        menuItem = new MenuItem("Menu Item");
        contextMenu = new ContextMenu();
        contextMenu.MenuItems.Add(menuItem);
        }

        protected override void OnKeyDown(KeyEventArgs e) {
        base.OnKeyDown(e);

        if (e.KeyCode == Keys.Apps) {
        ShowMenu(new Point(0, 0));
        }
        }

        protected override void OnMouseUp(MouseEventArgs e) {
        base.OnMouseUp(e);

        if (e.Button != MouseButtons.Right) {
        return;
        }

        ShowMenu(new Point(e.X, e.Y));
        }

        protected void ShowMenu(Point pos) {
        contextMenu.Show(this, pos);
        }

        protected ContextMenu contextMenu;
        protected MenuItem menuItem;
        }
        }
    • by prockcore ( 543967 ) on Friday August 13, 2004 @12:42AM (#9955830)
      A new from scratch implementation has started with four of the top Mono developers that are now
      locked up in Provo Utah working around the clock
      to delivery the new implementation of Windows.Forms


      What are they doing then? I thought using wine was going to solve the p/invoke issue. Are you just going to ignore the p/invoke and just implement the exposed API?
      • by IamTheRealMike ( 537420 ) on Friday August 13, 2004 @04:48AM (#9956663)
        It was, but there were communications issues. So now they're going to not only try to implement the entirely of S.W.F in C# (that's an entire widget toolkit!) but also a fake WndProc/Handle property for apps that rely on the underlying Win32ness of it.

        For *really* hard core apps (read: most .NET apps) that actually mix native and .NET code, they were talking about having a special "winelib" mode where it's somehow used, but I've not seen any credible technical details on this.

        Basically it looks like in order to run .NET code that is mixed with native Win32 code the Wine team will have to do their own S.W.F implementation one day. Currently there are no killer .NET apps that I know of (by killer I mean public/retail software sufficiently unique that it's a "blocks my migration to Linux" app, rather than custom corp apps) so it's not a big deal. But I expect they'll come eventually.

    • by ambrosine10 ( 747895 ) on Friday August 13, 2004 @03:46AM (#9956471)
      Those people criticizing Miguel really need to shut up. Here is a man who has contributed much code to open-source projects, is a great leader in the movement, and works for what he believes in. Yet these zealots are constantly yelling at him just because he happens to see MS technology in an impartial light. Just because it's by MS doesn't automatically make it bad. In fact if it wasn't for people like Miguel who try to merge practicality with idealism, the open-source movement would be as irrevelant as ever.
      • by squiggleslash ( 241428 ) on Friday August 13, 2004 @10:00AM (#9958180) Homepage Journal
        The major argument isn't against Miguel as what he's doing and the mindset commonly associated with Miguel.

        What most of us want is something better than what Microsoft does, more than that, we want something exciting, radical, and different. The mindset that Miguel and others seem to share is that as long as "our" stuff is Free, it is better, and there's no point in creating a better technology, we might just as well copy Microsoft, fix a few bugs, extend here and there, and, voila, you have something better. The technology isn't better, but the implementation is, and that's enough, right?

        It's more than that though, it's an unwinnable contest. As long as Microsoft's "competitors" are merely trying to catch up with Microsoft, implementing the same technologies, there's no way, in practice, those competitors can actually be better except on purely political grounds.

        Now don't get me wrong, I consider myself an enthusiast of free software. But if you're going to write an operating system from the ground up, then you're wasting a lot of opportunities by relentlessly copying someone else, especially copying the technologies - from the user interfaces to the APIs - of a company whose reputation in the industry is of being first, not best. It's a waste of talent.

        The issue becomes worse when you consider that these competitors are trying to build Microsoft's environment upon an operating system that has a fundementally different philosophy at its heart, meaning any competitor designed this way is going to be fundamentally flawed. Linux, arguably, should be abandoned in favour of ReactOS if this development path continues.

        A substantial section of the free software and open source communities lacks the talent and imagination to build something new, and unfortunately that section is leading development at the moment. Miguel is merely the figurehead for that movement. I don't blame people for feeling that way, I know a lot of people would like a Free clone of Microsoft's operating systems and environments, I just feel that this is a bandwagon the GNU/Linux distributions are unwise in hopping on to and pouring so much development time into.

        The question really is do you want a Free Windows, or do you want a choice of platforms? Right now, GNU/Linux is Window's most powerful competitor, yet all the excitement, the innovation, the "We want to create something better" attitude, is coming from elsewhere [apple.com].

    • by KAMiKAZOW ( 455500 ) <kamikazow@hotmail.com> on Friday August 13, 2004 @04:04AM (#9956530)
      our path to indepedence clearly goes through Gtk#


      Why GTK#? Honestly, GTK is probably one of the worst toolkit for real cross platform development.
      The Windows port of GTK sucks. This WiMP thing (Or whatever it's called - it makes GTK app to some degree look like native Windows apps) is not that great. The performance of the GTK(WIMP) apps' GUI is noticeable lower than a native GUI.

      Under Mac OS X it's even worse. GTK only works under X11. This means no Aqua look & feel. No copy and paste or drag'n'drop between native OSX apps and GTK apps. Even keyboard shortcuts are different.

      Why didn't you chose something like wxWidgets? At least wxWidgets offers native GUIs under any platforms it runs. wxWidgets or any other toolkit that offers real platform independence.
      Or: With all these XML GUIs under .NET (like XAML) Ximian could've used Mozilla's XUL toolkit and have better multi platform integration than GTK.

      Also - from what I've read on the mailing list archives - Mono only works sometimes on BSD systems.

      What kind of independence is this? You are only focused on x86-Linux running GNOME.

      Ximian does not seem really interested in real platform CocoaSharp. Stuff like Qt# (for KDE users), CocoaSharp, and other cross platform develpment is not done by any Ximian guy, but from contributors.
      • "Ximian does not seem really interested in real platform CocoaSharp."

        should be: "Ximian does not seem really interested in real platform independence."

        Sorry, I messed with the clipboard. ;)
      • by IamTheRealMike ( 537420 ) on Friday August 13, 2004 @07:30AM (#9957126)
        First of all, there is no magic bullet to write quality desktop software and have it run anywhere. These days, if you want to write a program once and have it feel native on each platform, you need to be either using native widgets on each platform, or to have a big investment in custom code and tweaks in your toolkit for each platform.

        GTK# runs on multiple platforms. Unsurprisingly it works best on the platform most people use it on. It does not run well on Windows or MacOS X, but that's simply because few people have worked on it/been interested in it. That can be fixed, with time.

        When Miguel said "GTK# is the path to independence" he was talking about API independence not platform independence. They are different.

        wxWidgets does not give platform independence. Sorry, but it just doesn't cut it for quality software. Abstractions work best when the things they abstract are semantically very similar (or identical) - widget toolkits are not similar, they often work in very different ways and have radically different capabilities. I've yet to run a wxWidgets app which didn't feel piss poor on every platform : much like Swing apps not feeling native everywhere, wxWidgets apps never fit in. This doesn't cut it for writing good software for the free desktop.

        Or: With all these XML GUIs under .NET (like XAML) Ximian could've used Mozilla's XUL toolkit and have better multi platform integration than GTK.

        GTK is a proven platform used by many, many applications. XUL is really only used by the Mozilla suite of apps: it lacks such basic things as the still theoretically xulrunner. That's why it was chosen.

        Also - from what I've read on the mailing list archives - Mono only works sometimes on BSD systems. What kind of independence is this? You are only focused on x86-Linux running GNOME.

        So what? Wine doesn't work on BSD systems currently either, but this is the fault of BSD not Wine (and I believe the same is true of Mono). Both Wine and Mono do very complex things with threading, address space management and low level OS calls that BSD either doesn't support or nobody with the relevant expertise has shown up to write the support. The vast majority of people use Linux, so this gets the best support. This is the open source meritocracy : write the code and the support will come, yes?

    • Question... (Score:3, Funny)

      by johannesg ( 664142 )
      You appear to be reading slashdot, and yet be a productive individual. How?
  • Patents? (Score:5, Informative)

    by Anonymous Coward on Friday August 13, 2004 @12:33AM (#9955780)
    From the mono FAQ:

    Question 131: Could patents be used to completely disable Mono (either submarine patents filed now, or changes made by Microsoft specifically to create patent problems)?

    ... The controversial elements are the ASP.NET, ADO.NET and Windows.Forms subsets. Those are convenient for people who need full compatibility with the Windows platform, but are not required for the open source Mono platform, nor integration with today's Mono's rich support of Linux.
    • Also remeber that... JPEG, GIF, SDRAM, etc were/are also STANDARDS... it didn't stop some companies to use submarine patents to extract royalties!
  • by Anonymous Coward
    I don't see Windows developers switching to Gtk# just coz "It works in Linux" ... They will rather go elsewhere like Wx.NET [sourceforge.net] for example (it runs on native OSX [sourceforge.net]) or run Winforms using Portable.net's Swing based Winforms [gnu.org] (that sounds like a LOT of volunteer work ?). They will NOT use Gtk# or Cocoa# until they have a VS.NET designer built-in .

    I have this distinct feeling that supporting Windows.Forms out of the box would have affected Miguel's stated reasons for Mono ie Gtk# and using it for Gnome apps...

  • by fupeg ( 653970 ) on Friday August 13, 2004 @12:35AM (#9955791)
    There are some decent arguments for using Mono over Java on Linux. Those arguments don't hold up as well on OSX, though. Java support on the Mac is in many ways superior to Java on any other platform, especially for Swing apps (the counterpart to most Cocoa# apps.) Still it could be attractice to have a framework that made it as easy as Java is for developing cross-platform (Windows/Linux/OSX) apps that would have significant performance advantages over Java on 2 out of 3 of those platforms.
    • by Anonymous Coward
      Huh? Pardon me, but how much Swing development have you done on OSX? I've done plenty as OSX was to be my primary development environment, targetting windows users. After about a month of that, I now do most of my development on an XP laptop.

      There are NUMEROUS outstanding issues with Apple's JVM. First off, the perfomance is significantly slower than on Windows ( this is comparing my Dual G5 w/1GB RAM to a 2.2GHz Celeron w/512M laptop ).

      Secondly, the setFont() function is completely ignored for JTextA
    • Good Mac Apps are not written in Swing/SWT/GTK.

      Thats why Cocoa# is so important. You can take existing .Net apps and port them to Mac.
  • by after ( 669640 ) on Friday August 13, 2004 @12:35AM (#9955792) Journal
    I've been using wxWidgets [wxwidgets.org] for some corperate develpment and I don't think I can be more happy with it. Integrating Cocoa into Mono is nice with GTK and all (didn't read article- sorry,) but is it going to use native UI faculties that the operating system provides? wxWidgets even has .NET interpolabilito under development called wx.NET [sourceforge.net] and you can use that with Mono too.
  • by callipygian-showsyst ( 631222 ) on Friday August 13, 2004 @12:36AM (#9955801) Homepage
    ..from embracing (and extending!) C# and .NET. Programmers generally like C# and .NET [robert.to] for application development, and Objective-C has some serious flaws.
    • by jcr ( 53032 ) <jcr@macTOKYO.com minus city> on Friday August 13, 2004 @01:24AM (#9956008) Journal
      Objective-C has some serious flaws. ..and also some compelling advantages. Take a look at how NSUndoManager was implemented, and please tell me how to do the same thing in Java, C#, C++ or whatever your favorite language may be.

      -jcr
      • Take a look at how NSUndoManager was implemented

        In VB it's implemented like this:

        SendKeys{"CONTROL+Z"}.
      • answer (Score:2, Insightful)

        by Spy Hunter ( 317220 )
        C# and Java provide "reflection" APIs for implementing things like this. It would be quite easy to create a class entirely analagous to NSUndoManager in either language (and without the reference counting cruft necessary because of Objective-C's lack of garbage collection...)

        I won't defend C++ here, though. It could be done with function pointers but it wouldn't be pretty.

        • Re:answer (Score:5, Informative)

          by bnenning ( 58349 ) on Friday August 13, 2004 @10:15AM (#9958326)
          C# and Java provide "reflection" APIs for implementing things like this. It would be quite easy to create a class entirely analagous to NSUndoManager in either language

          No it wouldn't. Check the documentation; NSUndoManager intercepts *any* message sent to it, and stores it for later invocation on a different target. You can't do that with reflection, which only allows you to call one of a fixed number of methods.

          Another example: there are third party libraries that add higher order messaging [macdevcenter.com] to Cocoa collection classes. They allow you to write code like "[[array select] isFroody]", which will return all objects in array for which the method -isFroody returns true. Again, the initial "isFroody" message is intercepted, then forwarded to each object in the array.

  • by Ars-Fartsica ( 166957 ) on Friday August 13, 2004 @12:47AM (#9955852)
    Congrats to the Mono crew - from announcement to 1.0, they have covered a lot of ground in a short period of time and if they are perceived to be encumbered by patent issues (note I say perceived), they are not encumbered by bad-source-practices that is still keeping Java locked out of some domains.

    You can use real apps right now with Gtk# - the Muine music player and the Blam RSS reader are functional and mostly stable...there are many other examples.

  • Windows forms sucks (Score:2, Informative)

    by Anonymous Coward
    Really. You'd think Microsoft could come up with something better than the grid-based layout they have been since forever. Once you start using a constraint based layout kit like Gtk, you never want to go back to the stone age and have to manually write window resize code and manually adjust the sizes of controls individually. I'm hoping to try out Gtk# soon for projects now that we are starting to use .Net as a development platform.
  • Gtk# Rocks (Score:5, Interesting)

    by pherthyl ( 445706 ) on Friday August 13, 2004 @12:54AM (#9955885)
    Even back in the 0.8 days, I had very few problems making a medium sized app (~4000 lines), developed entirely under linux with Mono. Everything worked on the first try when I ran it on windows with .NET.

    Now that's true cross platform ability. Even with Java I've never had it work that flawlessly. Thanks Miguel and Mike Kerster and the rest of the Mono team. You guys rock.
  • by Brandybuck ( 704397 ) on Friday August 13, 2004 @01:05AM (#9955931) Homepage Journal
    I think the world has finally left me behind. I just don't get this obsession with .NET. Even the Java ecstacies back in the mid 90's weren't this enthusiastic. There are fifty stories on related topics on OSNews, and .NET evangelists are work are sprouting up everywhere like dandelions. Hell, Miguel can't take a dump these days without Slashdot reporting it.

    Why the obsession with Microsoft technology? What's it going to give me, an embedded systems developer? Why are vice presidents at work mandating its use in a hard realtime product? Frankly it appears to me that the world has gone stark raving mad.

    Has there EVER been any language or framework that generated so much unbridled enthusiasm before? Did they lace the spec with speed or something? I'm not doubting that these various Microsoft cloning projects have some merit, but some of you guys are going way over the top.

    I guess I'm just an old fashioned fuddy duddy who should stick with old fashioned languages, frameworks and music.
    • Why are vice presidents at work mandating its use in a hard realtime product?

      Funny, I was just reading a very good essay on this subject [paulgraham.com] earlier today.

      My favorite paragraph:

      Why does he think this? Let's take a look inside the brain of the pointy-haired boss. What he's thinking is something like this. Java is a standard. I know it must be, because I read about it in the press all the time. Since it is a standard, I won't get in trouble for using it. And that also means there will always be lots of Jav

    • by Osty ( 16825 ) on Friday August 13, 2004 @01:34AM (#9956045)

      Why the obsession with Microsoft technology?

      .NET is pretty damned good, and people recognize that. The few who don't are the normal "Anything but Microsoft" zealots. It's not perfect, but very good and getting better.


      What's it going to give me, an embedded systems developer?

      Absolutely nothing, but you're not the target demographic.


      Why are vice presidents at work mandating its use in a hard realtime product?

      .NET is the hot new buzzword, and your VPs aren't smart enough to realize that it's not suitable for embedded realtime applications.


      Frankly it appears to me that the world has gone stark raving mad.

      From your perspective, that may be true, but then you're looking at the world from the eyes of a real-time, embedded systems developer where you work with a limited set of known hardware under strict time and resource constraints. .NET isn't for you. That doesn't mean the world has actually gone mad, just that there's more to the world than that which applies to you.


    • by Anonymous Coward on Friday August 13, 2004 @01:39AM (#9956078)
      Think about it this way.

      For years, developers targetting the windows platform had two (real) choices VB or C/C++.

      With C/C++ you had two choices. Use the win32 API directly and/or use MFC. With VB, creation of GUI apps was made as simple as possible, at the expense of a cumbersome language.

      Throw COM into the mix, complex threading models and API interface du-jour and the bottom line is that Windows developers have been guinea pigs feeding on inconsistent standards for 15 years.

      -----Enter Java

      Finally, a language that brings OOP to the masses without having to learn complex semantics regarding memory allocation. It also eliminates the cumbersome and overly complex nature of STL in C++.

      The drawbacks were twofold: Early java adopters didn't have the rich GUI IDE's present in VB5/6 and VC++/DevStudio. Like it or not, it hurt producitivty, at least in the short term. Translation: corporate america didn't warm up to the idea immediately.

      Another drawback to java was the rampant verbosity of the language. There are those that do believe that enum's and value types are GOOD things.

      Then you had the immaturity of Java GUI toolkits that made 'rich client' apps look like they were written by high school script kiddies.

      ---- Enter .NET/C#

      Goodbye VB6. Goodbye VC++. Hello managed code. Goodbye MFC. Hello (working) garbage collection. Goodbye complex threading models. Hello full-featured clone of Java.* renamed as System.*.

      C# as a language is a dream. It contains most of the language features that I had been dying for. It is readable, quick to code in and is put together in a consistent manner.

      There is very little about C# that is better than java. But for windows-based shops, Java can't hold a candle to c#/.net.

      It isn't a religous war. You may not like microsoft's policies or busines practices. And they certainly didn't invent the concept of a managed environment or one-up Java.

      While the typical slashdotter is foaming at the mouth about MS, .NET and how we are all bunch of idiots, I am busy writing code for a good company that just happens to base their operations on windows.

      Imagine the ability to take an ASP.NET app that you RAD-developed using MS VS.NET tools and cross-compiling it in Mono, running the whole thing under apache using mod_mono.

      You would have the benefit of a killer IDE (VS.NET), a rock-solid back end (Apache) and an application framework that works without headache!

      That is why **I** use MS.NET and MONO. I don't particularly care for MS, but I am smart enough to know what side of the bread is buttered.

      Bottom line: Sometimes you have to get past the religious zealotry of the pro-linux/anti-ms crowd (ie. slashdot) and see something for it's good.

      This isn't a perfect world, and MS usually sucks, but .NET is cool. Linux is cool. Mono is cool.

      Lets marry them together and reap the benefits.

      Standing at the back of room pouting isn't helping advance your cause.
    • by dekeji ( 784080 ) on Friday August 13, 2004 @01:56AM (#9956135)
      The key differences between C# and Java are philosophy and licenses.

      Java's philosophy is built around WORA and enforced standardization, courtesy of Sun Microsystems.

      C# is just a language, like C or C++--it comes with a small standard library, but what you do with it beyond that is up to you. C# has a language standard, and an open one at that, but the degree to which you follow that is up to you.

      Whether that is good or bad is a matter of needs and preferences. I think the level of enthusiasm C# and Mono have generated should tell you which way the wind is blowing.

      Note that Mono is not just about cloning Microsoft. Mono is building an entire platform; part of that platform is Microsoft compatibility libraries, but most of it is actually based on open source APIs and libraries.
    • The fact that Microsoft initiated this project is a significant negative to me (risk of having the rug pulled out) but the only negative against the opportunity to have a multi-language (I'm a sucker for the strong type- and functionality assertion checking that Pascal first brought, and Eiffel now offers), multi-platform environment.

      That means that when the NAG releases their intricate math routines in .Net, I could use them without worrying about FORTRAN vs. C vs VB etc... develop anywhere (?) for implem
    • by groomed ( 202061 ) on Friday August 13, 2004 @02:32AM (#9956245)
      Well, as the anonymous poster above already mentioned, you need to consider what came out of Microsoft before .NET; a confused jumble of acronyms and paradigms with the combined lifespan of a Coke bottle.

      .NET really is Microsoft's first serious contribution to the computing culture (as opposed to industry) at large. It synthesises many of the ideas of the past decade in a very clean and logical way. And it's remarkably open: not in the sense that it's endorsed by some standards body, but in the sense that it actually makes an effort to integrate with other technologies -- through the pervasive use of XML, the Common Language Runtime and the numerous hooks in the class library, all the way down to the fact that the C# compiler will actually not explode when encountering a file with \n line termination rather than \r\n.

      .NET is a heavy-duty framework that will be around in some form for decades to come, and it's pretty good. It's like Java but less insular, it's like C but less tedious.

      What generates all the hubbub, of course, is that something like this is coming from Microsoft. Think of it as a celebration party. What's being celebrated is that Microsoft is finally coming of age.

  • Question about GTK# (Score:5, Interesting)

    by EvanED ( 569694 ) <evaned AT gmail DOT com> on Friday August 13, 2004 @01:20AM (#9955992)
    I've been looking high and low for a cross platform GUI tool, and the only one I particularily like is Qt. Which, of course, you have to pay lots of money for to get the Windows version (or deal with the "freeware" bit stuck in the title bars of windows). I'm gonna look into Wx.NET; just found out about that in this discussion.

    Anyway, I'm reading over the FAQ for GTK#, and it says you need to have cygwin. So, my question is, does only the developer of the software need to have cygwin, and then it builds it using libraries provided with it and outputs a nice standalone application, or does everyone who wants to use it need to install cygwin? I can't seem to figure this out from the site...
  • by Xpilot ( 117961 )
    I wish they'd update the Objective C bindings for Gnome instead. It'd be nice to use Obj C to create Gnome programs. It's a nice, clean OO language.

  • I bid C# welcome (Score:3, Insightful)

    by haxor.dk ( 463614 ) on Friday August 13, 2004 @01:36AM (#9956060) Homepage
    C# may be a Microsoft invention, but now that Mono has opened it for the Linux and Mac people, I bid it welcome. As far as I can see, it is a very powerful language, which offers a number of functions and features of ex. Objective C.
  • by dekeji ( 784080 ) on Friday August 13, 2004 @01:47AM (#9956105)
    There is another choice for native GUIs using C# on Windows, Linux, and OS X: wx.NET [sf.net], bindings of the wxWindows [wxwindows.org] library to Mono and Microsoft's .NET implementation.

    wxWindows is great because it gives you a uniform API across different platforms and toolkits, while at the same time using native widgets and giving you access to platform-specific features if you like.
  • by DAldredge ( 2353 ) <SlashdotEmail@GMail.Com> on Friday August 13, 2004 @02:15AM (#9956193) Journal
    http://www.mono-project.com/downloads/ [mono-project.com]

    Mono 1.0.1 has been released and fixes a number of bugs.
  • GTK# is NOT ready (Score:5, Interesting)

    by ralinx ( 305484 ) <ralinx@gmail.com> on Friday August 13, 2004 @03:33AM (#9956400)
    i'm developing a C# application which has a System.Windows.Forms (SWF) frontend for the Windows version, and a GTK# frontend for the Linux version. I was hoping to get rid of the SWF frontend and deploy my application on Windows and Linux using the GTK# frontend. Despite all of the hype surrounding Mono/GTK# (thanks miguel) i have not been able to get this working because GTK# simply doesn't work correctly with MS.NET. There are parts of GTK# that actually rely on an incompatibilty between Mono and MS.NET to work correctly. So when this code is executed with MS.NET, you'll get runtime exceptions. The same code will function correctly on Windows when you use Mono on Windows, but then i get memory leaks everytime i use Regex.Match which my application needs quite often. So after leaking about 395MB of RAM, the garbage collector will crash with an error ("too many heap sections"). The same code runs perfectly on Linux in Mono.

    I would really like to see Mono and GTK# completely ready to be used on Windows for _serious_ stuff (as in: not the average Hello World GTK# app) but rigth now, it just isn't up to the task yet. On Linux, it's pretty good alraedy, but on Windows it's just unusable for my application. I've had to go back to using my old SWF frontend for my windows users.
    • Re:GTK# is NOT ready (Score:3, Informative)

      by Nurgled ( 63197 )

      It sounds to me like your current approach is how it should be done. Make sure none of your other code depends on the UI and then just write several UI layers. That way it'll look native wherever you run it.

      In my opinion, GTk# on Windows should just be used to run software that was never intended to run on Windows, as a compatibility layer in similar ven to Cygwin. If you are actually indending your application to be cross-platform, having several switchable GUI layers is the way to go. Later on, if it see

I THINK THEY SHOULD CONTINUE the policy of not giving a Nobel Prize for paneling. -- Jack Handley, The New Mexican, 1988.

Working...