My vote goes to dropping the System.Drawing dependency.

We are currently in Alpha  with the OSX version of our software. Monobjc is
working its magic; thanks again for such a professional tool!

What I've seen so far is that indeed quite a few users still appear to use
Tiger (no problem as such for monobjc), and even some Leopard users
apparently have done a custom install and chose not to install X11. Result:
Lots of users not having X11 installed (I would guess like 15%)

The result is that we still cannot claim our software to act like a regular
native Mac app, since X11 needs to be installed.
We are now detecting the presence of X11 at startup and direct to an info
page on our site on how they should install the X11, but it's really
cumbersome.

It also doesn't look like mono will give up the X11 dependency anytime
soon...

So, yes, I agree that the best way to deal with this would be to remove any
dependency to System.Drawing in both monobjc and our software. This would
require some work on our side too (we mostly use System.Drawing for image
loading and scaling and such ... all easily replaced by NSImage and family),
but it would be worth it. We intend to do this anyway, since in our
software, we're now constantly casting Image objects to NSImage, which is
surely not efficient.

Just my 2 cents.

Thanks
Franky

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Laurent Etiemble
Sent: vrijdag 24 april 2009 9:47
To: Mac Programmer; Monobjc User List
Subject: [[email protected]] Re: Monobjc and System.Drawing

Hello,

(Note: Cross posting to the user list)

For historical reasons, NSColor and NSImage were made to be implicitly
usable with the Color and Image classes. It was a quick way to make
existing code works (image loading, various colors, etc). Now, Monobjc
contains everything needed to replace all the code linked to the
colors, images or drawing.

Moreover, it seems that on Tiger, the X11 installation is a
show-stopper. So my question is: "Shall we drop the System.Drawing
dependency ?". This will mean no more Color and Image implicit
conversion, no more access to System.Drawing drawing methods, etc.

Please comment on the list.

Regards, Laurent Etiemble.


Reply via email to