简体   繁体   English

是否可以使用haxe构建Mac本机应用程序?

[英]Is it possible to use haxe to build mac native application?

I see Haxe can compile to many languages, but not sure is it possible to use it build a native mac(OSX) application? 我看到Haxe可以编译为多种语言,但是不确定是否可以使用它来构建本机mac(OSX)应用程序? Like a small TODO list application? 像小型TODO清单应用程序一样?

是的,使用OpenFL或其他框架( LuxeKhaNME ),您可以定位Mac并获取通过XCode编译到本机应用程序中的项目。

If you want native OSX UI then there are libraries for that, such as Basis: https://github.com/Randonee/Basis . 如果您想要本机OSX UI,则可以使用该库,例如Basis: https : //github.com/Randonee/Basis When using that you use the C++ target, and the library communicates with Objective C UI stuff via the C Foreign Function Interface. 使用该库时,您将使用C ++目标,并且该库通过C外函数接口与Objective C UI进行通信。 This comes with some limitations and depending on the status of the library, it could be hard to get started. 这有一些限制,根据库的状态,可能很难上手。

If you don't care about native UI then there are libraries that have what you need for simple notepad-type apps. 如果您不关心本机UI,那么有一些库可以满足简单记事本类型应用程序的需求。 In most cases you would still be able to use the C++ target. 在大多数情况下,您仍然可以使用C ++目标。 For example see Ian Harrigan's Haxe UI project: https://github.com/ianharrigan/haxeui 例如,请参见Ian Harrigan的Haxe UI项目: https//github.com/ianharrigan/haxeui

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM