I’ve been doing .NET development for about 10+ years. I recently started looking at Mac OS X development efforts. I had a hard time starting with that because of all of my Windows way of doing it. Finally, i got a hand on it. This is my version of Hello World application for Mac OS X 10.5 using XCode 3.1 (for iPhone Development). The IDE looks powerful. But as a first timer, i did struggle a little to get around.
Step 1: Launch XCode 3 and click File - New Project from the menu
Â
Â
Step 2: Choose Application on the left & Cocoa Application on the right side. Click Choose…
Step 3: Select Destination folder where you want to save the files
You will see a window like this.
Â
Step 4: Open MainMenu.NIB by double clicking it.
This open up Interface builder for XCode. This is the UI editor or Visual designer of Visual Studio. Open Tools - Library to see the “Toolbox” of Visual Studio.
Step 5: From the Objects, Choose Views & Cell. Draga Label and drop it. Change the label by double clicking to say “Hello World1″.
Step 6: Save and Close Interface builder
Step 7: Build and Go from XCode.
Bingo. Your app will look like the following:

Â
Download the XCode project:Â helloworld.zip

March 29th, 2008 at 7:48 pm
thanks. I was trying myself to figure it out. Apple, of course, left no instructions.
October 29th, 2008 at 6:41 pm
Really Nice !!!
Thanks from Brazil.