本文介绍了如何在Xcode中创建一个简单的Objective-C命令行项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从C#VS2008世界迁移到Mac世界,我只是想知道如何创建一个基于命令行的快速小应用程序,这样我就可以编写许多小型Objective-C应用程序而不必担心创建iPhone.应用或其他任何内容.

I'm moving from a C# VS2008 world into the Mac world and I just wanted to know how I can create a quick little command line based application so that I can write many little Objective-C apps without worrying about creating an iPhone app or whatever.

我可以在Xcode中创建哪些项目?我可以在"Mac OS X"下看到命令行工具,但该类型的唯一选项是"C","C ++","Core Data","Core Foundation","Core Services"和"Foundation",但并不简单Objective-C项目?

Which projects do I create in Xcode? I can see the Command Line Tool under "Mac OS X" but the only options for the type is "C", "C++", "Core Data", "Core Foundation", "Core Services" and "Foundation" but no simple Objective-C project ?

谢谢

推荐答案

基础"是您想要的. Foundation框架是Apple用于Objective-C的标准库",提供了所有基本类,如NSArray,NSString,NSNumber等.由于没有Foundation的普通" Objective-C对于大多数应用程序不是很有用,因此Apple可能选择以Foundation库命名其项目模板.

"Foundation" is the one you want. The Foundation framework is Apple's "standard library" for Objective-C that provides all the basic classes like NSArray, NSString, NSNumber, and much more. Since "plain" Objective-C without Foundation is not very useful for most applications, Apple probably chose to name its project template after the Foundation library.

这篇关于如何在Xcode中创建一个简单的Objective-C命令行项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 10:03