使用 C# 和 Mono 为 OS X 构建 Cocoa UI

Building Cocoa UIs for OS X with C# and Mono(使用 C# 和 Mono 为 OS X 构建 Cocoa UI)
本文介绍了使用 C# 和 Mono 为 OS X 构建 Cocoa UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人花时间比较 Mono 的各种 Objective C 桥和相关的 Cocoa 包装器?

Has anyone spent any time comparing the various Objective C bridges and associated Cocoa wrappers for Mono?

我想移植一个现有的 C# 应用程序以在 OS X 上运行.理想情况下,我会在 Mono 上运行该应用程序,并为它构建一个本机 Cocoa UI.

I want to port an existing C# application to run on OS X. Ideally I'd run the application on Mono, and build a native Cocoa UI for it.

我想知道哪座桥是最好的选择.

I'm wondering which bridge would be the best choice.

如果它对任何人有用,这里有一些我到目前为止找到的桥梁的链接:

In case it's useful to anyone, here are some links to bridges I've found so far:

  • CocoSharp - 在 OS X 上随 Mono 分发 - www.cocoa-sharp.com

  • CocoSharp - distributed with Mono on OS X - www.cocoa-sharp.com

Monobjc - 比其他文档更好(在我看来) - www.mono-project.com/CocoaSharp 和 www.monobjc.net

Monobjc - better documentation than the others (in my opinion) - www.mono-project.com/CocoaSharp and www.monobjc.net

NObjective - (显然)比其他人更快 - 代码.google.com/p/nobjective

NObjective - (apparently) faster than the others - code.google.com/p/nobjective

MObjc/MCocoa - code.google.com/p/mobjc 和 code.google.com/p/mcocoa

ObjC# - www.mono-project.com/ObjCSharp

推荐答案

Mono 团队发布了一个名为 MonoMac 的新桥.

The Mono team have released a new bridge called MonoMac.

它本质上是他们为 iPhone 制作的 MonoTouch 框架的桌面版本.

It's essentially the desktop version of the MonoTouch framework they produced for the iPhone.

Miguel 在他的博客上宣布了新桥:http://tirania.org/blog/archive/2010/Apr-19.html

Miguel announced the new bridge on his blog here: http://tirania.org/blog/archive/2010/Apr-19.html

一旦 MonoMac 成熟,我怀疑它将成为人们使用的桥梁.

Once MonoMac matures, I suspect that it will become the bridge people use.

这篇关于使用 C# 和 Mono 为 OS X 构建 Cocoa UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)