从iOS跳到OSX [英] Jumping from iOS to OSX

查看:78
本文介绍了从iOS跳到OSX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始学习为OSX编程,但只为iOS编程。

I want to start learning to program for OSX but have only programmed for iOS.

除了硬件相关问题之外,编程级别有哪些重大差异,例如:内存,处理能力等。

What are the significant differences on a programming level other than hardware related issues such as memory, processing power etc.

就实际的api和编程而言,就像鼠标和键盘而不是触摸屏使用的项目一样。

In terms of the actual api and programming, like items to be used by the mouse and keyboard rather than the touch screen.

我希望有相关经验的人提供一些建议,可能还有好的书籍链接或教程链接。

I would like some advice from people who have experience with this and possibly good book links or tutorial links to get started.

谢谢

推荐答案

让我这样说:不要只是尝试将所有东西都移到Mac没有考虑设计原则。许多开发人员都在寻求加入Mac开发人员的行列而不花时间进入他们的应用程序。简单地将应用程序从iOS移动到Mac并不会带来良好的界面。

Let me put it this way: Don't just try to port all your stuff over to the Mac without thinking about design principles. A lot of developers are seeking to get on the Mac developer bandwagon without putting time into their apps. Simply moving apps from iOS to Mac doesn't bring forth good interfaces.

面对现实,iOS专为触摸屏而设计,而Mac则不是。因此,简单地转移您的界面可能会起作用,但它是错误并且被许多用户不满意。我要做的只是下载一些着名的Mac应用程序(演示工作正常),并研究界面与iOS相比如何布局。有类似的概念,但差异多于相似之处。

Face it, iOS is built for touchscreen, while Mac is not. Thus, simply transferring your interface over might work, but it is bad and frowned upon by many users. What I would do is just download some well-known Mac applications (demos work fine), and just study how the interface is laid out compared to iOS. There are similar concepts, but there are more differences than similarities.

最根本的区别是iPhone上的界面只能有一个窗口,而Mac可以无限 windows(理论上)。将所有视图填充到一个窗口中只是不会在Mac上剪切它。用户已经开始期待多个窗口,老实说,这是一个更好的方法。

The most fundamental difference is that the interface on the iPhone can only have one window, while the Mac can have unlimited windows (theoretically). Stuffing all your views into one window just doesn't cut it on the Mac. Users have come to expect multiple windows, and honestly it's a much better way to do it.

所以我的建议是从头开始学习Cocoa,然后考虑将应用程序转移到... 而不是,只需移植它即可,而是通过创建一个全新的界面。您的模型仍然可以使用,因为两个平台都使用Objective-C。

So my suggestion is to learn Cocoa from the ground up, and then think about transferring your apps over...not by simply porting it, but instead by making a completely new interface. Your model can still be used, because both platforms use Objective-C.

平台如此相似,却又如此不同。 :)

Platforms so similar, yet so different. :)

这篇关于从iOS跳到OSX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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