NPS on Linux and Mac

Up until now, NPS has been a Windows-only application. But thanks to the Mono framework, this very well may change.

Mono, which is more or less a drop-in replacement for the Microsoft .NET Framework, allows .NET applications to run on all sorts of platforms – from x86 Windows to PowerPC Macs. I've known about it for a long time, but it wasn't until a few days ago that I seriously tried getting NPS to run on it. And it worked after several hours of "hacking" and rewriting code I hadn't touched since day 1.

NPS on Mono, initial
NPS on Mono, present
 

Here is NPS running on Mono (on Windows 7 for now). The first picture is how it looked when I first got it running; the second one is how it looks at the moment. Not only does it look almost as good as it does on Windows, but it also works well – all painting functionality works great, as does file saving and even printing.

What caused most of the issues seen in the first picture? The use of the GetPrivateProfileString API call, which is used for reading .ini files. Mono doesn't like any direct API calls or P/Invokes, so I had to write my own configuration file parser, which took most of the aforementioned time. (The other issue was the use of Table layouts instead of Flow layouts for ToolStrip controls... it broke the panel moving code, making everything all jumbled together on the left.)

On the other hand, some things just don't work right... yet. The Configuration Panel and Component Manager don't render correctly, and the NPS Color Picker crashes the whole application. But oh well. In time, these issues will be fixed.

So what does this all mean? It means that there is now a decent chance that you Linux and Mac users will finally be able to enjoy NPS!

Posted on Monday, June 28, 2010 at 2:00 PM | Permalink | Tags: NPS, mono, mac, linux

Comments (2)

Monday, June 28, 2010 at 2:52 PM
It would be great to have NPS under Linux
Options: Reply | Quote | Flag / Report

Your Master
Friday, September 3, 2010 at 8:50 PM
It would be nice to go multi-platform. I approve.
Options: Reply | Quote | Flag / Report

Leave a comment

 
four plus zero is (Huh?)
Comment moderation is enabled.
Your comment will appear on the page after it has been reviewed.