我该如何制作Mac软件?.............. [英] how can i make mac software?..............

查看:359
本文介绍了我该如何制作Mac软件?..............的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows PC上制作Mac软件?例如,如何在Windows PC上制作ipod touch应用?

how can i make mac software on a windows PC? ofr example, how would I make a ipod touch app on a windows PC?

推荐答案

在Windows上?非常不寻常的活动.

我可以告诉你我该怎么做.我从没尝试过iPod,而是为Mac OS X开发的.我在Mac OS X上安装了Mono.请参见 http://en .wikipedia.org/wiki/Mono_%28software%29 [ ^ ].

然后,我使用标准库和一些非标准库(例如System.Windows.Forms)在Windows上开发.NET应用程序,这些库与Mono具有很好的兼容性.

这样的应用程序可以在Mono上运行,而无需重新编译.

与Linux不同,Mono的此类应用程序在Mono上的表现不佳.因此,可能需要某些Mac特定的开发.有一个非常依赖的绑定库,提供Mono,Objective-C( http://en.wikipedia.org/wiki/Objective-C [ ^ ])和Mac OS X库,尤其是Cocoa API( http://en.wikipedia.org/wiki/Cocoa_%28API%29 [ ^ ]).此绑定库称为Monobjc,请参见 http://en.wikipedia.org/wiki/Monobjc [ ^ ].它允许纯粹的Max OS X开发,但是即使在Mono下,这样的应用程序也不会在Windows上运行,这很自然.但是,它们可以在Windows上以某种盲目的模式进行开发和编译.

另外,使用Monobjc开发的应用程序不能直接在Mono下运行.可执行文件应作为Monobjc 运行时系统的命令行参数运行,该系统的工作方式类似于Max OS X应用程序.

据说还支持iPad开发,我从没尝试过.

Max OS X编程的一个重要方面是创建应用程序包 http://en.wikipedia .org/wiki/Application_bundle#Mac_OS_X_application_bundles [^ ].这是使用Finder或兼容的文件管理器在项目上单击时运行应用程序的方式;参见 http://en.wikipedia.org/wiki/Finder_%28software%29 [ ^ ].

我必须说,这项活动非常具有异国情调,并且Internet上的信息非常有限,这对于不太有经验的开发人员来说,使开发成为一定的问题.同时,这是完全可行的.

—SA
On Windows? Pretty unusual activity.

I can tell you how I do it. I never tried iPod, but develop for Mac OS X. I install Mono on Mac OS X. See http://en.wikipedia.org/wiki/Mono_%28software%29[^].

Then I develop .NET applications on Windows, using standard libraries and some of non-standard ones, such as System.Windows.Forms which have very good compatibility with Mono.

Such applications work on Mono without recompilation.

Unlike Linux, such applications for Mono do not behave like quite good citizens on Mono. So, some Mac-specific development may be required. There is a very depending binding library providing binding between Mono, Objective-C (http://en.wikipedia.org/wiki/Objective-C[^]) and Mac OS X library, notably Cocoa API (http://en.wikipedia.org/wiki/Cocoa_%28API%29[^]). This binding library is called Monobjc, see http://en.wikipedia.org/wiki/Monobjc[^]. It allowed for pure Max OS X development, but such application won''t run on Windows even under Mono, well, quite naturally. However, they can be developed and compiled on Windows, in somewhat blind-folded mode.

Also, applications developed with Monobjc cannot run under Mono directly. Executable file should be run as a command-line parameter to the Monobjc runtime system, which works like a Max OS X application.

Reportedly, iPad development is also supported, I never tried.

One important aspect of Max OS X programming is creation of application bundle, http://en.wikipedia.org/wiki/Application_bundle#Mac_OS_X_application_bundles[^]. This is the way to run application on click at the item using Finder or a compatible file manager; see http://en.wikipedia.org/wiki/Finder_%28software%29[^].

I must say, this activity is pretty much exotic, and information on Internet is very limited, which makes development a certain problem for not very experienced developers. At the same time, it''s quite doable.

—SA


这篇关于我该如何制作Mac软件?..............的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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