AppDelegate.m not automatically created?

Discussion in 'Mac Programming' started by Casablancas, Jul 2, 2010.

  1. Casablancas macrumors newbie

    Joined:
    Jul 2, 2010
    #1
    I am new to xcode and mac programming, and am using "Cocoa Programming - A quick start guide for developers" from the pragmatic programmers as a guide.

    If I understand correctly, when i create a new cocoa application, the AppDelegate.m and .h should be automatically created, as they are part of the template.

    This is not happening for me, and I was wondering how to have them created when I create a new cocoa app.

    Thanks!
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    What version Xcode? What version OS? Can you provide screenshots of your Xcode project window with all groups expanded?
     
  3. Casablancas thread starter macrumors newbie

    Joined:
    Jul 2, 2010
    #3
    Im using version 3.2.3 of Xcode, on Mac OS 10.6.4
    I have also noticed that the cocoa application is created with a MainMenu.nib, although shouldn't this be a .xib?

    Here is a screenshot of my Xcode
     

    Attached Files:

  4. Casablancas thread starter macrumors newbie

    Joined:
    Jul 2, 2010
    #4
    I just tried uninstalling Xcode, with this:

    sudo /Developer/Library/uninstall-devtools –mode=all

    Then I restarted, and reinstalled, and I am still having the exact same problem..

    Any Ideas?
     
  5. Casablancas thread starter macrumors newbie

    Joined:
    Jul 2, 2010
    #5
    OK, I have managed to fix it!

    I uninstalled Xcode again, the same way I had done in the last post.
    I then removed all files from the Developer folder, and reinstalled.
    When I started a new program in Xcode, the AppDelegate files were there, and the MainMenu file was a .xib, instead of a .nib!
     

Share This Page