GUI编程C ++对于Mac OS X Lion [英] GUI Programming C++ for Mac OS X Lion

查看:163
本文介绍了GUI编程C ++对于Mac OS X Lion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可能会遇到这个问题的虐待,但这里。哦,但在你撕裂我,并告诉爬下岩石之下等我已经看起来高低,没有什么帮助我到目前为止,软件libs已过期,因为某些原因不会工作狮子。

I'm probably going to get abuse for this question but here goes. Oh but before you tear into me and tell to crawl back under a rock etc. I have looked high and low and nothing has helped me so far either the software libs are out of date and for some reason wont work on lion.

Ok除了Qt还有其他任何其他轻量级的开源GUI库的C ++在mac上?我试过这个wxWidgets不工作的原因。苹果似乎不再提供那个碳螃蟹了,还是可以使用openGL来创建GUI?我只想要一个简单的,很好地记录的GUI lib,而不必切换到windows来开发。或者我必须花一些钱在一个或诉诸Qt。

Ok other than Qt is there any other lightweight opensource GUI library for C++ on mac? I have tried this wxWidgets doesn't work for some reason. Apple don't seem to offer that carbon crap anymore or can I use openGL to create GUI's? I just want a simple nicely documented GUI lib without having to switch to windows to develop. or will I have to spend some money on one or resort to Qt.

希望有人可以帮助和感谢!

Hope someone can help and thanks!

推荐答案

为什么不使用Cocoa(本地方式开发OSX GUI)?你必须使用Objective-C调用创建窗口,例如,你可以混合这个代码和C ++代码在同一个文件 - 这就是所谓的Objective-C ++,它是由clang和gcc支持。

Why not use Cocoa (the native way to develop OSX GUIs) in the first place? You must use the Objective-C calls to create windows for example, but you can mix this code with C++ code in the same file - this is then called Objective-C++ and it is supported by clang and the gcc.

要构建完全本地化的OSX应用程序,您需要Cocoa。每个其他的工具包,可以创建这些本地GUI调用Cocoa(至少是我的知识)。

To build completely native-looking OSX Applications, you need Cocoa. Every other toolkit that can create those native GUIs calls Cocoa (at least to my knowledge).

只是一个指针:你尝试过SDL吗?

Just as a pointer: have you tried SDL?

这篇关于GUI编程C ++对于Mac OS X Lion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆