When you open Xcode 4 and ignore the new project window, it doesn’t appear possible to simply create a new file. You must create a new project first. Is that true?
I seem to recall that in Xcode 3.x, I could simply create a new C file and get coding/practicing. It would also give me an option to ignore auto-creation of a header file.
Am I getting something wrong or am I remembering Xcode 3.x incorrectly?
I’m working through Scott Stevenson’s “Cocoa and Objective C – Up and Running” book and really only need the most straightforward way to create and play with single C files without having to create bulky projects around them.
I don’t know if it is possible to create a C file without a whole project. However, it is possible to edit a C file with Xcode, without having a project. So, as a workaround, you can create an empty C file with whatever tool you want, double-clic it and it will open with Xcode.
Or, if you prefer, you can use the console to do it:
The file empty.c should be created and opened with Xcode.