Visual Studio 开发人员的 Xcode 快速入门
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/335052/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode quickstart for the Visual Studio developer
提问by xyz
I would like to use Apple's Xcode IDE to develop applications on the OS X, but I find the UI immensely confusing because I am so used to developing in Visual Studio on Windows.
我想使用 Apple 的 Xcode IDE 在 OS X 上开发应用程序,但我发现 UI 非常混乱,因为我已经习惯在 Windows 上的 Visual Studio 中进行开发。
Does anyone know of any Xcode quickstart guides for the Visual Studio developer that map common tasks and functionality from one to the other?
有谁知道 Visual Studio 开发人员的任何 Xcode 快速入门指南,这些指南将常见任务和功能从一个映射到另一个?
For example, I can't even work out how to launch the C/C++ command line tool being written in a new shell window (Terminal.app) i.e. what would happen if you pressed F5 in Visual Studio.
例如,我什至不知道如何启动在新 shell 窗口 (Terminal.app) 中编写的 C/C++ 命令行工具,即如果您在 Visual Studio 中按 F5 会发生什么。
采纳答案by Grant Limberg
For viewing the shell when a command line app, that is done in the Console window, not in a terminal window. This allows full interaction with gdb. To open the Console window, hit Shift-Command-R to see the output of your program.
用于在命令行应用程序中查看 shell,这是在控制台窗口中完成的,而不是在终端窗口中。这允许与 gdb 完全交互。要打开控制台窗口,请按 Shift-Command-R 以查看程序的输出。
If you would like Xcode to show the Console window when you start your app, go into preferences. In the Debugger tab, there's a drop-down list labeled "On Start:" Select "Show Console" or "Show Console and Debugger" and they will open when you hit run.
如果您希望 Xcode 在您启动应用程序时显示控制台窗口,请进入首选项。在“调试器”选项卡中,有一个标有“启动时”的下拉列表:选择“显示控制台”或“显示控制台和调试器”,它们将在您点击运行时打开。
As far as a quickstart or tutorial, I'm not sure of any specific online tutorials, but you may want check out the book Xcode 3 Unleashedby Fritz Anderson.
至于快速入门或教程,我不确定是否有任何特定的在线教程,但您可能需要查看Fritz Anderson所著的Xcode 3 Unleashed一书。
回答by Abizern
The Xcode 3 book is good, I agree. Specifically for learning the Xcode environment.
Xcode 3 的书很好,我同意。专门用于学习Xcode环境。
But, it's aim is to be compatible with Mac OS X 10.4, so there is no Garbage Collection or properties, etc being used.
但是,它的目标是与 Mac OS X 10.4 兼容,因此没有使用垃圾收集或属性等。
As a learning tool - you can have fun refactoring the code to use the features of the new OS.
作为一种学习工具 - 您可以享受重构代码以使用新操作系统的功能的乐趣。
You would be better off (in my opinion) getting the Hillegass Cocoa Programmingbook and starting from there rather than trying to duplicate your VS workflow on a Mac.
您最好(在我看来)获得Hillegass Cocoa Programming书并从那里开始,而不是尝试在 Mac 上复制您的 VS 工作流程。
回答by Jonathan Moffatt
I'm in a similar situation to you - I use Visual Studio at work and XCode at home, so the differences can be quite frustrating.
我的情况与您类似 - 我在工作中使用 Visual Studio,在家里使用 XCode,因此差异可能会令人非常沮丧。
One tool that may interest you, especially if you use Resharper, is the new Jetbrains "AppCode" project - see http://www.infoq.com/news/2011/04/jetbrains-appCode
您可能会感兴趣的一个工具,尤其是当您使用 Resharper 时,是新的 Jetbrains“AppCode”项目 - 请参阅http://www.infoq.com/news/2011/04/jetbrains-appCode
It's a code editing IDE that offers vastly improved code analysis, fixing, navigation and refactoring features. It's not a complete replacement for XCode - nib editing still needs done there - but IMO it's worth putting up with some switching between the two for the advantages it brings.
它是一个代码编辑 IDE,提供了极大改进的代码分析、修复、导航和重构功能。它不是 XCode 的完全替代品——笔尖编辑仍然需要在那里完成——但 IMO 值得在两者之间进行一些切换,因为它带来的优势。
As a Visual Studio user you'll feel immediately at home as the UI is much closer to VS than to XCode.
作为 Visual Studio 用户,您会立即感到宾至如归,因为 UI 更接近 VS 而不是 XCode。
Currently their early access program is open so you can download alpha builds.
目前他们的抢先体验计划是开放的,因此您可以下载 alpha 版本。