new objective C-class won't create .h file

Discussion in 'iOS Programming' started by OriginalJef, Mar 1, 2013.

  1. OriginalJef macrumors newbie

    Mar 1, 2013

    I'm learning to program iOS applications and try to make a calculator but when I add a class "CalculatorBrain" he only makes "CalculatorBrain.m" and not "CaluclatorBrain.h".
    I'm learning Objective C with Stanford University movies and reviewed that specific part a million times and still can't find the problem
    How can I solve this???
  2. Duncan C macrumors 6502a

    Duncan C

    Jan 21, 2008
    Northern Virginia
    What version of Xcode are you using? And can you explain the exact steps you go through? I just tried it as a test, and it does exactly what I would expect, creating a .m and a .h file:

    file menu>new>file

    Pick Objective C, Cocoa touch, Objective C class. Click next. Enter a class name and pick a parent class (NSObject, or whatever is appropriate.) I used NSObject, so the "Targeted for iPad" and "With XIB for interface" checkboxes were dimmed. I then clicked next again and got a file save dialog. After pressing return to save my files in the project directory, I had 2 new files in my project.
  3. OriginalJef thread starter macrumors newbie

    Mar 1, 2013

    I use Xcode 4.6
    U can see the problem in the screenshots

    Attached Files:

Share This Page