Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Casablancas

macrumors newbie
Original poster
Jul 2, 2010
4
0
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!
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
What version Xcode? What version OS? Can you provide screenshots of your Xcode project window with all groups expanded?
 

Casablancas

macrumors newbie
Original poster
Jul 2, 2010
4
0
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
 

Attachments

  • Screen shot 2010-07-03 at (3 Jul) 7.42.30 PM.png
    Screen shot 2010-07-03 at (3 Jul) 7.42.30 PM.png
    224.9 KB · Views: 104

Casablancas

macrumors newbie
Original poster
Jul 2, 2010
4
0
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?
 

Casablancas

macrumors newbie
Original poster
Jul 2, 2010
4
0
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!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.