Hello to the Gnoga community,
I have tested the following procedure and Mac_gap code to implement a Gnoga
based application into MAc OSX App:
https://sourceforge.net/p/gnoga/code/ci/dev_1.5/tree/docs/native_mac_apps.md
Create a singleton app using Gnoga
This requires some tuning if you want to migrate from multi_connect to
singleton as singleton is not a specific case of multiconnect.
Both commands
"Gnoga.Application.Singleton.Initialize;"
and "Gnoga.Application.Singleton.Message_Loop;"
should be in the same package as the GUI code.
This is my experience.
2. Make native support for Mac using
make native_osx
This command should be launched in the root directory ./gnoga-code
3.Copy your project's individual bin, js, etc. directories to
deps/MacGap2/public
Ok.
It is not clear if the name of the project can be changed from MG to any name.
4. Modify the index.html file in deps/MacGap2/public to contain the following
lines:
html
Note: The index.html page can be used to display some sort of "loading"
message if desired, although usually loading is instant.
It works for me but loading is not instant in the App.
5. From the deps directory run - open MacGap2/MG.xcodeproj/
It works fine, I'm using XCode 11.4.1 on Mac OSX 10.15.4 (Catalina).
Mac OS deployment target for the project is 10.9, and Xcode asks me if I want
to update to recommended settings.
If I do so, it generates many errors in the code, so I stayed with current
settings.
6. Build as you would any native Mac OS X application for XCode
This is what I'm doing, I get a working App. I'm struggling with the background
color of the main window which appears black whereas my original background
color was white.
Appart from that, the interface is functionnal, all buttons and mous clicks are
operationnal, the look of the interface is fine.
Let me know what you think.
I will update you on my progress.
Best regards
Frederic Desnoes
_______________________________________________
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list