WinBottler - Turn your Windows apps into Apple ones
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: WinBottler - Turn your Windows apps into Apple ones
Massimo,
We are going to review (hopefully today) how fast we can have those classes ready
We are going to review (hopefully today) how fast we can have those classes ready
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: WinBottler - Turn your Windows apps into Apple ones
We are reviewing the docs for Cocoa printing:
http://developer.apple.com/mac/library/ ... cture.html
Class NSPrinter:
http://developer.apple.com/mac/library/ ... rence.html
http://developer.apple.com/mac/library/ ... cture.html
Class NSPrinter:
http://developer.apple.com/mac/library/ ... rence.html
- Massimo Linossi
- Posts: 474
- Joined: Mon Oct 17, 2005 10:38 am
- Location: Italy
Re: WinBottler - Turn your Windows apps into Apple ones
Great news !!!
Give me a sign when Fivemac is ready for printing, and I'll place the order.
Thanks a lot.
Massimo.
P.S. One little question. In Windows, for making the dialogs, we use the Resource
Workshop. In Mac, what can we use ? And for the dialogs already made, is possible
to import them in the new system ?
Give me a sign when Fivemac is ready for printing, and I'll place the order.
Thanks a lot.
Massimo.
P.S. One little question. In Windows, for making the dialogs, we use the Resource
Workshop. In Mac, what can we use ? And for the dialogs already made, is possible
to import them in the new system ?
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: WinBottler - Turn your Windows apps into Apple ones
It may be more complex than we thought but we already have some progress
Code: Select all
#include "FiveMac.ch"
function Main()
PrinterSelect()
return nil
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: WinBottler - Turn your Windows apps into Apple ones
Massimo,
OSX provides "Interface Builder" to draw the resources but they use a different format than the used in Windows.
Actually coordinates have to be copied "by hand" though we could have a tool in the future to do it automatically.
OSX provides "Interface Builder" to draw the resources but they use a different format than the used in Windows.
Actually coordinates have to be copied "by hand" though we could have a tool in the future to do it automatically.
- Massimo Linossi
- Posts: 474
- Joined: Mon Oct 17, 2005 10:38 am
- Location: Italy
Re: WinBottler - Turn your Windows apps into Apple ones
Wow, you're great !!!
Is there the possibility to start to develop with a beta release ?
Thanks a lot a many compliments for your work.
Fivemac is like LOST. Every moment there is surprise
Massimo.
P.S. If you give me some hints, I can help you to convert some classes to Fivemac.
Is there the possibility to start to develop with a beta release ?
Thanks a lot a many compliments for your work.
Fivemac is like LOST. Every moment there is surprise
Massimo.
P.S. If you give me some hints, I can help you to convert some classes to Fivemac.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: WinBottler - Turn your Windows apps into Apple ones
Massimo,
Still a (long?) way to go, but we are already printing and OSX provides the preview automatically!
TestPrn.prg
Still a (long?) way to go, but we are already printing and OSX provides the preview automatically!
TestPrn.prg
Code: Select all
#include "FiveMac.ch"
function Main()
PrinterSelect()
return nil
function PrinterPaint()
DrawText( 50, 200, "Printing from FiveMac", CreateFont( "Arial", 20 ) )
return nil
- Massimo Linossi
- Posts: 474
- Joined: Mon Oct 17, 2005 10:38 am
- Location: Italy
Re: WinBottler - Turn your Windows apps into Apple ones
WOW
Another great step. Great work Antonio. I'll send you a beer.
Have a nice weekend.
Massimo.
Another great step. Great work Antonio. I'll send you a beer.
Have a nice weekend.
Massimo.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: WinBottler - Turn your Windows apps into Apple ones
Massimo,
Windows, OSX and Linux are quite different worlds when we compare their GUIs APIs.
So there is no a straight way to port Windows code to OSX (cocoa) code. In fact, we use FiveWin as a compatibility layer between all of them. FiveWin/FiveMac/FiveLinux set a compatibility wrapper that easier the work of the programmer, and also offers a cross platform learning as once you know how to code in FiveWin you are ready for FiveMac and FiveLinux too
Windows, OSX and Linux are quite different worlds when we compare their GUIs APIs.
So there is no a straight way to port Windows code to OSX (cocoa) code. In fact, we use FiveWin as a compatibility layer between all of them. FiveWin/FiveMac/FiveLinux set a compatibility wrapper that easier the work of the programmer, and also offers a cross platform learning as once you know how to code in FiveWin you are ready for FiveMac and FiveLinux too
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: WinBottler - Turn your Windows apps into Apple ones
Using colors:
Code: Select all
#include "FiveMac.ch"
function Main()
PrinterSelect()
return nil
function PrinterPaint()
DrawText( 50, 150, "Printing from FiveMac", CreateFont( "Arial", 20 ), CLR_BLUE() )
DrawText( 50, 200, "Printing from FiveMac", CreateFont( "Verdana", 20 ), CLR_GREEN() )
DrawText( 50, 250, "Printing from FiveMac", CreateFont( "Times Roman", 20 ), CLR_RED() )
return nil
- Massimo Linossi
- Posts: 474
- Joined: Mon Oct 17, 2005 10:38 am
- Location: Italy
Re: WinBottler - Turn your Windows apps into Apple ones
Are you working today ? Your wife will not be happy...
Have a nice day.
Massimo.
P.S. You're making an incredible work. Compliments
Have a nice day.
Massimo.
P.S. You're making an incredible work. Compliments
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: WinBottler - Turn your Windows apps into Apple ones
Another utility to run Windows apps on Mac OSX:
http://www.winonx.com/
I have not tested it myself yet. I think it may the same technology as WinBottler with the difference that WinOnx is a commercial product, but I may be wrong...
http://www.winonx.com/
I have not tested it myself yet. I think it may the same technology as WinBottler with the difference that WinOnx is a commercial product, but I may be wrong...