简体   繁体   English

Apple / iPhone开发IDE首选项?

[英]Apple/iPhone Development IDE Preferences?

I'm going to do something I never thought I'd do... learn how to program for Apple hardware . 我将做一些我从未想过会做的事情......学习如何为Apple硬件编程。 After working in C, C++, C#, .NET, and even in the golden days of DOS (a little DOS4G/W memory extender in Borland Turbo-C, anyone?) and even as a kid, playing around with Atari 8-Bit Turbo-BASIC, I feel a little traitorous on multiple levels :) Anyway, I'm going to grad school, studying music full-time - it'll be the first time in years I won't have a full-time programming gig - and I thought it would be fun to pick-up some Objective-C in my free-time - and maybe a little extra pocket change (one can always hope :) 在C,C ++,C#,.NET工作之后,甚至在DOS的黄金时代(Borland Turbo-C中的一个小DOS4G / W内存扩展器,任何人?)甚至小时候,玩Atari 8-Bit Turbo-BASIC,我觉得在多个级别上有点叛逆:)无论如何,我要去研究生院,全日制学习音乐 - 这将是多年来我第一次没有全日制编程演出 - 我觉得在我的空闲时间拿起一些Objective-C会很有趣 - 也许还有一点额外的口袋改变(一个人总能希望:)

So, to the point of the post . 所以, 到了帖子的位置 I'm very used to Visual Studio, the designer, the XAML editor, the code-behind, blah blah blah. 我很习惯Visual Studio,设计师,XAML编辑器,代码隐藏,等等等等。 A friend pulled up X-Code on his little MacBook to show off how cool it's supposed to be. 一位朋友在他的小MacBook上拉了X-Code,以展示它应该是多么酷。 Sure, it has the same sorts of things as VS overall, but it seemed a little more scattered then I'd like. 当然,它与VS整体有着相同的东西,但它似乎比我想要的更分散。 I'm sure once I got used to it, it would be fine, but I was just wondering if there are other good, free (or almost free)/or open-source editors out there for the Intel-based Apples that could also handle iPhone development. 我敢肯定,一旦我习惯了它,它会很好,但我只是想知道是否还有其他好的,免费的(或几乎免费的)/或开源编辑器,那里也可以用于基于英特尔的苹果处理iPhone开发。 Or any tips on getting into xCode? 有关进入xCode的任何提示? I've just decided to do this, so I feel like I'm starting from scratch. 我刚刚决定这样做,所以我觉得我从头开始。 I'm not slamming X-Code... I haven't really used it yet. 我没有抨击X-Code ......我还没有真正使用它。 I was just wondering what coders' preferences are. 我只是想知道编码员的偏好是什么。

Thanks for any advice! 谢谢你的建议!

There really is no alternative IDE on OS X for writing native applications. OS X上没有替代IDE用于编写本机应用程序。 Some dislike the Xcode built-in editor, however. 但有些人不喜欢Xcode内置编辑器。 One very popular alternative is TextMate (non-free, but well worth the ~$50). 一个非常受欢迎的选择是TextMate (非免费,但值得~50美元)。 Xcode can be configured to use your editor of choice for editing text files. 可以将Xcode配置为使用您选择的编辑器来编辑文本文件。 Free alternatives include Emacs and Vim ports for OS X. 免费替代品包括OS X的EmacsVim端口。

You can, of course, use the gcc toolchain without Xcode (eg using one of the Unix-style build systems such as Make). 当然,您可以在没有Xcode的情况下使用gcc工具链(例如,使用其中一种Unix风格的构建系统,例如Make)。 You can also use xcodebuild at the terminal command line to build an Xcode project without using the Xcode GUI at all (you'd be hard-pressed to configure and manage the project without the GUI, however). 你也可以在终端命令行使用xcodebuild来构建一个Xcode项目而根本不使用Xcode GUI(但是你很难配置和管理没有GUI的项目)。 Combining these two, one could cobble together an IDE from eg Eclipse to build an OS X app. 结合这两者,人们可以拼凑一个来自Eclipse的IDE来构建OS X应用程序。 iPhone would be harder since Xcode handles certificate signing etc. for you, but still possible. 由于Xcode为您处理证书签名等,iPhone会更难,但仍然可能。 You would loose all of the nice Objective-C completion and documentation integration you get from Xcode, of course. 当然,您将放弃从Xcode获得的所有优秀的Objective-C完成和文档集成。

So, in summary, Xcode is pretty much the only game in town. 因此,总而言之,Xcode几乎是城里唯一的游戏。 It will undoubtedly take a while to get used to coming from VS. 毫无疑问需要一段时间才能习惯来自VS. In particular, code generation is almost unheard of in the Cocoa world. 特别是,代码生成在Cocoa世界中几乎闻所未闻。 When you feel yourself searching for those kind of tools, train yourself to try a different approach. 当您感觉自己在寻找这些工具时,请训练自己尝试不同的方法。 Objective-C's late-binding combined with the power of NIB/XIB (bundles produced in Interface Builder that describe the UI of an app; XIB is a newer, version-control-friendly XML-based format that is automatically compiled into a NIB, the old-style format from NextStep days) makes code generation unnecessary. Objective-C的后期绑定与NIB / XIB的强大功能相结合(Interface Builder中生成的捆绑包描述了应用程序的UI; XIB是一种更新的,版本控制友好的基于XML的格式,可自动编译为NIB, NextStep天的旧式格式)不需要代码生成。

For non-Cocoa/iPhone development, the ecosystem is naturally larger. 对于非Cocoa / iPhone开发,生态系统自然更大。 Nokia has their own IDE for the Qt toolkit which can be used to write OS X (but not iPhone) apps. 诺基亚有自己的Qt工具包IDE ,可用于编写OS X(但不是iPhone)应用程序。 Eclipse can be used to write Java apps using any of the Java toolkits (including SWT and the Qt-Java framework, QtJambi). Eclipse可用于使用任何Java工具包(包括SWT和Qt-Java框架,QtJambi)编写Java应用程序。

For pure Windows-developer familiarity, there's also Mono which runs on OS X. MonoDevelop may run on OS X, but I'm not sure. 对于纯粹的Windows开发者熟悉,这里还有单声道它运行在OS X上的MonoDevelop可以在OS X上运行,但我不知道。

I think XCode is the most popular choice amongst Cocoa developers. 我认为XCode是Cocoa开发人员中最受欢迎的选择。 I think the best thing you could do is go straight into writing apps and exploring. 我认为你能做的最好的事情就是直接编写应用程序和探索。

http://cocoadevcentral.com/ - Has some great tutorials, they're also usually very screenshot friendly. http://cocoadevcentral.com/ - 有一些很棒的教程,它们通常也非常适合截图。

For pure ease XCode will be the way to go since it integrates with the iPhone simulator and Interface Builder. 为了简单起见,XCode将成为可行的方式,因为它与iPhone模拟器和Interface Builder集成。 Also, when you want to deploy your app to an actual device XCode does the certificate installation and management. 此外,当您要将应用程序部署到实际设备时,XCode会进行证书安装和管理。 I don't have experience with any other IDE's for OSX though so I can't 100% answer your question. 我没有任何其他IDE的OSX经验,所以我不能100%回答你的问题。 But, these are things you'll want to be aware of during your investigation. 但是,这些是您在调查过程中需要注意的事项。

Let us know what you find! 让我们知道你发现了什么!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM