Macbook Pro 2.4GHz Random number Generator in Cocoa application
Mar 21

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


2 Responses to “Hello World for a Mac Cocoa”

  1. Bob Schoenburg Says:

    thanks. I was trying myself to figure it out. Apple, of course, left no instructions.

  2. Douglas Fischer Says:

    Really Nice !!!
    Thanks from Brazil.

Leave a Reply