News for hackers. Stuff that matters.
Re:Ask HN: Is there still a place for native desktop apps? by madeofpalk on Sunday May 17, 2020 @07:36PM (#23216561)
What does “native” even mean?

Put a <button/> in an HTML page and you get a platform-provided UI widget.

Re:Ask HN: Is there still a place for native desktop apps? by PaulDavisThe1st on Sunday May 17, 2020 @08:51PM (#23217035)
It's not platform-provided in my experience, but browser provided. The result of <button/> when viewed in a browser on macOS has no relation to the Cocoa API in any meaningful sense.
Re:Ask HN: Is there still a place for native desktop apps? by madeofpalk on Sunday May 17, 2020 @09:39PM (#23217300)
I'm pretty sure that when you render just a <button> in at least Safari, the browser will render a native Cocoa button control. If you set a CSS property like background colour or change the border, then it will "fall back" to a custom rendered control that isn't from the OS UI.

I did a small bit of research into this, and found plenty of "anecdotal" evidence, but nothing confirming for sure. I'm looking and interacting with the controls and they seem pretty native - if they're a recreation than that's pretty impressive :)

Re:Ask HN: Is there still a place for native desktop apps? by saagarjha on Monday May 18, 2020 @06:24AM (#23220595)
The drawing is native and the interaction is handled by the browser.
Re:Ask HN: Is there still a place for native desktop apps? by slightwinder on Monday May 18, 2020 @05:29AM (#23220241)
A GUI is a collection of elements with specific look and behaviour. A Desktop Environment is a collection of GUI(s), tools and services. Native means you have something which follows this look and behaviour 100% and can utilize all the tools and services.

Implementing the look is simple, adding behaviour quite harder and utilizing the service the endgame. WebUI usually does nothing from those or some parts, it all depends on the constellation. But usually there is a obvious difference at some point where you realize whether something is native or just made an attempt.