.Net人需要一些关于Cocoa的信息 [英] .Net guy needs some info on Cocoa

查看:96
本文介绍了.Net人需要一些关于Cocoa的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在OSX和iPhone上做一点开发。我一直是.Net / C#开发人员多年。我想知道是否有任何人在两个平台都有经验,可以告诉我他们如何比较和对比。

I want to do a little development in OSX and the iPhone. I've been a .Net/C# developer for years. I was wondering if there was anybody that had experience in both platforms that could tell me how they compare and contrast. I'd like to get an idea of what sort of learning curve I've got ahead of me.

感谢,

Geoff

推荐答案

第一个错误:在XCode中做了一些Cocoa开发。你会注意到的第一件事是,IDE(XCode)不是像Visual Studio一样直观,或者一般不错。在XCode中工作时,我真的很想知道intellisense。苹果开发商可能会投票支持我的声明。但是从.Net环境,这是我真正想念的。所以不要设置你的期望太高,你不会太失望。我不是试图运行XCode下来,它只是不像Visual Studio一样好。

First the bad:
I have done some Cocoa development in XCode. The first thing you will notice is that the IDE (XCode) isn't anywhere as intuitive, or nice in general, as Visual Studio. I really miss intellisense when working in XCode. The Apple developers will probably down-vote me for that statement. But coming from a .Net environment, that is what I really miss. So don't set your expectations too high and you won't be too disappointed. I am not trying to run XCode down, it just isn't as nice as Visual Studio.

现在好:

Cocoa项目的一般架构是非常好。我真的希望.Net Winforms和WPF使用MVC开箱即用Cocoa项目。只要你遵循MVC模式,你应该做你的项目。我所做的一切都是在目标C.你可能会拿起一本书。我购买了适用于Mac OS X的Cocoa编程,并且认为它相当不错。如果你有任何C在你的背景,它会看起来很熟悉。从C#预期,类的点符号被替换为类似于Tcl的消息发送符号。

Now the good:
The general architecture of a Cocoa project is very nice. I do wish .Net Winforms and WPF used MVC out of the box like Cocoa projects do. As long as you follow the MVC pattern you should do OK with your project. Everything I have done is in Objective C. You might pick up a book on that. I purchased Cocoa Programming for Mac OS X and thought it was pretty good. If you have any C in your background, it will look very familiar. From a C# prospective, the dot notation for classes is replaced with a message-sending notation similar to Tcl.

获取您的机器上加载的iTunes,并下载iPhone开发视频 iTunes U 。您还需要注册Apple的开发人员程序,并为iPhone的XCode下载额外的位。

Get iTunes loaded on your machine and download the iPhone dev videos under iTunes U. You will also need to sign-up for the developer program at Apple and download the extra bits for XCode for the iPhone.

希望有帮助。我绝不是一个职业的Cocoa开发人员。

Hope that helps. I am by no means a pro Cocoa developer.

这篇关于.Net人需要一些关于Cocoa的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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