From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,NUMERIC_HTTP_ADDR autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.68.131.33 with SMTP id oj1mr6266227pbb.0.1412360255126; Fri, 03 Oct 2014 11:17:35 -0700 (PDT) X-Received: by 10.182.20.65 with SMTP id l1mr11333obe.38.1412360255017; Fri, 03 Oct 2014 11:17:35 -0700 (PDT) Path: border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!uq10no3409971igb.0!news-out.google.com!bc9ni13481igb.0!nntp.google.com!h18no1251297igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 3 Oct 2014 11:17:34 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.176.73.77; posting-account=yiWntAoAAAC1KqC_shmxJYv07B9l6LNU NNTP-Posting-Host: 66.176.73.77 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <59cfbd13-e920-4484-b128-e5509a190236@googlegroups.com> Subject: Native Mac OS X example with Gnoga From: David Botton Injection-Date: Fri, 03 Oct 2014 18:17:35 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: number.nntp.giganews.com comp.lang.ada:189350 Date: 2014-10-03T11:17:34-07:00 List-Id: It's quick and dirty, but I wanted to prove a point, Gnoga can be used for = native development. Using Gnoga and MacGap I created a native Mac OS X app of the Snake example= from http://www.gnoga.com It is downloadable from there if any one wants, when I have more time I'll = bind the MacGap API so can do menus, notifications, and all sorts of native= Mac stuff. Write some tools to automate things, etc. I also will plan on a= special way to build in the future that instead of WebSockets communicates= directly to WebKit for native apps. The process I used was simple: git clone https://github.com/MacGapProject/MacGap2.git cd MacGap2/public I modified the existing index.html with: I then created in public the /bin dir and /html dir, copied snake in to bin= and boot.html in to /html/ I then openned MG.xcodeproj Compiled and done :) I did modify the snake example so it shutdown the webserver and then closed= the OS X as well on game over: if Game_Over then delay 2.0; Gnoga.Server.Connection.Execute_Script (ID =3D> Main_Window.Connection_ID, Script =3D> "MacGap.terminate();"); Gnoga.Application.Multi_Connect.End_Application; exit; end if;