dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]Strange questions...


From: Rhys Weatherley
Subject: Re: [DotGNU]Strange questions...
Date: Sat, 20 Sep 2003 14:31:37 +1000
User-agent: KMail/1.4.3

On Saturday 20 September 2003 12:00 pm, Jason Batchelor wrote:

> I would love to see a CLR that runs the GUI elements of DotGNU on Mac
> OS X without having to use X11. I don't know, though, exactly what is
> needed in order to accomplish this feat.

You'll need to write a "System.Drawing.Mac" toolkit assembly, similar to 
"System.Drawing.Xsharp" and "System.Drawing.Win32", but using the Mac API's 
via PInvoke instead.  Edit "CreateDefaultToolkit" in the 
"System.Drawing.Toolkit.ToolkitManager" class to launch your toolkit instead 
of the Xsharp-based one and you're off and racing.

> I know that one of the core
> beliefs of the DotGNU project is to avoid vendor lock-in... does
> writing libraries to make WinForms run natively (without X11) on the
> Mac help or hinder that goal?

Since the X11 version is the primary version that we can always back off to 
while retaining full functionality, it doesn't really hinder the goal, IMHO.  
The toolkit layer is designed to be as minimal as possible, with very little 
used from the vendor's graphics layer, so lock-in is unlikely.

Cheers,

Rhys.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]