是否有一个框架可以让开发 Mac 应用程序感觉更像开发 iOS 应用程序?

发布于 2025-01-06 02:40:17 字数 242 浏览 2 评论 0原文

Mac 版 Twitter 背后的天才 Loren Brichter 曾经说过,他围绕 Cocoa / App Kit 构建了一个包装器,因此感觉更像 UIKit。不幸的是,我再也找不到我听到的资源了。

尽管我已经开发 iOS 应用程序几年了,但我在构建一个简单的 Mac 应用程序方面遇到了很多困难。

是否有包装器或框架让 iOS 开发人员感觉 AppKit 更自然? 是否有针对 iOS 应用程序开发人员的 Mac 应用程序开发书籍?

Loren Brichter, the genius behind Twitter for Mac, once said that he has built a wrapper around Cocoa / App Kit so that it felt more like UIKit. Unfortunately I can't find the resource anymore where I heard that.

I'm struggling a lot trying to build a simple Mac app although have been developing iOS apps for a couple of years.

Are there wrappers or frameworks which make AppKit feel more natural to iOS developers?
Are there books for developing Mac apps, targeted at iOS app developers?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

TwUI 对我来说是新的,但 IconFactory(顺便说一句,它让 Twitteriffic)发布了 http://chameleonproject.org/范围大致相同。

TwUI was new to me, but IconFactory (who, incidentally, make Twitteriffic) have released http://chameleonproject.org/ with much the same scope.

奢欲 2025-01-13 02:40:17

也许这意味着: https://github.com/twitter/twui

这里有一篇文章涵盖TwUI: http://engineering.twitter.com/2011/07/starting-today-twitter-is-offering-twui.html

TwUI 将 UIKit 的理念带到了桌面。它建立在 Core Animation 之上,并借鉴了 AppKit 的交互思想。它可以实现 Mac 用户期望的所有功能,包括拖拽和操作。拖放、鼠标事件、工具提示、类似 Mac 的文本选择等。而且,由于 TwUI 不受现有 API 的约束,因此开发人员可以尝试新功能,例如基于块的 drawRect 和布局。
在此处输入图像描述

Maybe this one is meant: https://github.com/twitter/twui

And here an article covering TwUI: http://engineering.twitter.com/2011/07/starting-today-twitter-is-offering-twui.html

TwUI brings the philosophy of UIKit to the desktop. It is built on top of Core Animation, and it borrows interaction ideas from AppKit. It allows for all the things Mac users expect, including drag & drop, mouse events, tooltips, Mac-like text selection, and so on. And, since TwUI isn’t bound by the constraints of an existing API, developers can experiment with new features like block-based drawRect and layout.
enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文