Search code examples
objective-cxcodexcode4

Run a single class file in Xcode 4


I created new Objective-C class and I am trying to use NSLog to test outputs from the class before calling the class methods in my iPhone app's main view.

In Netbeans, doing Java Projects, Shift+F6 used to work to run the single class file. I could not find that functionality in Xcode 4.

Any suggestions?


Solution

  • You don't do this, you run your entire application. If you want to test a class you should look into writing unit tests. http://www.raywenderlich.com/3716/unit-testing-in-xcode-4-quick-start-guide