0

I want to create a new project in Xcode (4.2), but I don't need any fancy windows or iOs templates, just a simple, standalone project (with an auto-generated main() perhaps) where I can build some classes and run simple tests.

Is the Cocoa Application template under Mac OS X the most suitable for this?

0

2 Answers 2

2

If you want just a simple, no-ui console app for testing classes, just go with Console Application. It has main.m, and very little else. If you want something completely empty, however, under the Other category for templates, there's one called Empty.

Sign up to request clarification or add additional context in comments.

8 Comments

I don't see Console Application, I see Cocoa Application, is that what you meant?
Look for something mentioning Console or Command Line Tool - it may not be in the same category as Cocoa Application. I'm running XCode 4.2 and it's in the Applications category, along with Cocoa Application and Cocoa-Applescript Application.
I see that now, but in the project Type selection, objective-c is not listed...which type allows me to code in obj-c?
Foundation/Core Foundation/Core Services/Core Data will allow you to use Objective-C. C/C++ would too, technically, but it would take some more work to get it to play nice. Go with the default Foundation. Those choices are actually just asking how the project is initially set up. You can blend Obj-C, C, and C++ as you need it but there are some caveats. If you are just learning, stick with basic Foundation
That worked, a little confusing for an Xcode newbie...thanks!
|
0

Cocoa Application will create a project with the Application menu only… maybe it's what you need.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.