|
|
Home » Developing U++ » Mac OS » Porting (Mac OS X) and "reference application" idea
Re: Porting (Mac OS X) and "reference application" idea [message #33171 is a reply to message #33150] |
Wed, 13 July 2011 00:15   |
 |
daveremba
Messages: 32 Registered: June 2011 Location: Los Angeles, CA, USA
|
Member |
|
|
OK, your messages make it very clear & helpful.
No high level widgets.
I understand that in summary,
we're aiming for a low level port
at the System Draw level, etc.
(like from Windows to Linux).
Quote: | Actually, I do not think so. There is only one possible path and it is the same as current Linux and Windows backends...
|
Well within that path,
I am thinking of looking into the following
sub-paths:
1) X11 approach - develop in GCC
continue to use X11 code for drawing,
fix the observed artifacts (flat buttons and
uninitialized areas behind menus), and
add the needed code to get top windows recognized
by MacOS as true application processes
(most work appears to be done
since UPP already has X11/Linux done, but
X11 can be complex and emulator on
MacOS may not be 100% compliant)
2) OpenGL approach - develop in GCC
implement low level drawing code using OpenGL,
and use a simple library like GLUT for window
system, keybd, and mouse, events
(simple and high performance, but not sure
if GLUT behaves well with MacOS)
This is the approach used by:
http://www.openframeworks.cc/about
3) Objective-C++ approach - develop in Xcode
implement low level drawing, window, and
event code using Obj-C calls into MacOS (probably low level
Cocoa calls) hooked into SystemDraw
and other UPP libs.
(probably the most work, but maybe the
best visual result, and flexible towards
more compatbility with Apple in the future).
4) do whatever they do approach - develop in GCC
continue to look at other frameworks (wxWidgets, Firefox,
Qt, FLTK, Tcl/Tk) and see what they do;
borrow from their code libraries if possible.
wxWidgets uses approach (3) above
Here is an interesting comparison of
UI toolkits (from a wx perspective):
http://wiki.wxwidgets.org/WxWidgets_Compared_To_Other_Toolki ts
wxWidgets has a pretty clear Cocoa library
in their source tree; unlike Firefox it
builds standalone apps rather hooked into
the Gecko framework (browser).
FLTK has an architecture that is most similar
to UPP - only a small portion of the code is
platform specific. It draws its own
widgets using low level 2D drawing primitives
in OpenGL (as in approach (2) above).
Pros: it looks the same on all platforms,
Cons: it never looks like other native apps
on any platform.
This code may be helpful to fix problems
in approach (1 & 2) above.
Source code is here:
http://www.fltk.org/software.php?VERSION=1.3.0&FILE=fltk /1.3.0/fltk-1.3.0-source.tar.gz
Firefox source is browsable here:
(to see how they do things, as you suggested Mirek)
http://mxr.mozilla.org/firefox/source/
The Firefox to Cocoa code is here:
http://mxr.mozilla.org/firefox/source/widget/src/cocoa/
I will do some tests/learning, and
report back in a few days, and
I will see how far the previous Mac
port effort got.
It seems that getting apps to work in the
X11 emulator is still worthwhile as the
easiest first step. (approach 1)
I spoke to my project client and they also do
want a working MacOS front end as well.
-Dave
[Updated on: Wed, 13 July 2011 08:01] Report message to a moderator
|
|
|
 |
|
Porting (Mac OS X) and "reference application" idea
By: mirek on Thu, 17 May 2007 17:35
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: captainc on Sun, 14 September 2008 15:08
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: mirek on Sun, 14 September 2008 17:37
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: captainc on Tue, 16 September 2008 05:00
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: mirek on Tue, 16 September 2008 10:33
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: bytefield on Tue, 16 September 2008 10:48
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: mirek on Tue, 16 September 2008 10:57
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: bytefield on Tue, 16 September 2008 11:44
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: captainc on Tue, 16 September 2008 15:06
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: guido on Tue, 16 September 2008 17:49
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: captainc on Thu, 18 September 2008 02:18
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: mirek on Thu, 18 September 2008 18:24
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: jeremy_c on Thu, 05 November 2009 15:53
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: cbpporter on Tue, 16 September 2008 11:06
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: gprentice on Tue, 16 September 2008 14:25
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: Reini on Fri, 06 November 2009 01:11
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: mirek on Sat, 07 November 2009 06:38
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: koldo on Sat, 07 November 2009 13:44
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: koldo on Sat, 07 November 2009 22:47
|
 |
 |
Re: Porting (Mac OS X) and "reference application" idea
By: Reini on Sat, 07 November 2009 22:32
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
|
 |
|
Suggestion
By: Reini on Fri, 13 November 2009 20:58
|
 |
|
Re: Suggestion
|
 |
|
Re: Suggestion
By: mirek on Sat, 14 November 2009 05:41
|
 |
 |
Re: Porting (Mac OS X) and "reference application" idea
By: Reini on Sat, 21 November 2009 18:43
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: mirek on Sun, 22 November 2009 23:05
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: kohait00 on Thu, 26 August 2010 11:03
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: kohait00 on Thu, 26 August 2010 11:41
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: kohait00 on Thu, 26 August 2010 11:48
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: jeremy_c on Sun, 29 August 2010 02:36
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: fudadmin on Thu, 11 November 2010 11:56
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: mirek on Sun, 21 November 2010 18:03
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: mirek on Tue, 05 July 2011 21:42
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: mirek on Wed, 06 July 2011 12:34
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: mirek on Mon, 11 July 2011 14:59
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: mirek on Mon, 11 July 2011 15:06
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
By: mirek on Wed, 13 July 2011 08:14
|
 |
|
Re: Porting (Mac OS X) and "reference application" idea
|
Goto Forum:
Current Time: Wed Apr 30 10:49:12 CEST 2025
Total time taken to generate the page: 0.01333 seconds
|
|
|