Hi Nikolaus,
Am 21.01.2021 um 19:49 schrieb Ivan Vučica <ivan@vucica.net>:
On Tue, Jan 19, 2021 at 7:23 PM H. Nikolaus Schaller <hns@goldelico.com> wrote:
Well, my dream is to write WebApps in Obj-C using OpenSTEP classes. I.e. button = [[NSButton alloc] initWithTitle:@"press here"]; and have the GUI class NSButton emit the necessary HTML+CSS+JS to present it to the user so that he can press the button in his browser. So use the MVC model in the App completely hiding that the user-interaction goes through https (on a very abstract level there is no big difference between http and X11 protocols connecting a server over the network with a display and a keyboard).
This could be achieved by a compiler from Obj-C to PHP or directly to PHP byte-code...
No translation into PHP needed. Simply implement an API in whatever language pleases you,
What about Objective-C?
If you want to use ObjC for Webapps why not using one of the oldest (since 1996) long time ago invented WebObjects or, if you want to have it the GNU way, GNUstepWeb? It has been there for a long time right at your fingertips.
regards,
Lars |