Apr 09

Apple finally came through the easy way for Interface Builder users to create applications. Now the steps are very simple than Beta 2 version of Hello World.

  1. Open XCode and Create a new “Cocoa Touch Application”
  2. Open MainWindow.xib by double clicking it. This launches Interface Builder with a blue background window. Design the UI with Label control and set background to something which you like.
  3. Save and Close Interface Builder
  4. Click “Build and Run” from XCode

Download the source: helloworldv2


Apr 02

Finally, I got the application working with interactions. I credit http://zone12.co.uk/iCode/tut1.html for this information.

Step 1: Create a new Cocoa Touch Application.

Step 2: Pick the directory and name for your application.

Step 3: As per the current template, it doesn’t generate Interface Builder file for you. Create a new one after opening the Interface builder in parallel as shown below: (Choose Cocoa Touch - View)

Continue reading »


Mar 27

Finally Apple released an initial version of iPhone SDK Beta 2 which has Interface Builder. It’s really cool to create applications. I wanted to put together the first step of creating HelloWorld quickly on it.

  • Open XCode
  • Create a new Project as “Cocoa Touch Application”

  • Provide the project name as “HelloWorld” on your selected folder and Click Save

Continue reading »


Mar 21

I started reading a book for Cocoa. It’s good to start with some application which can take you from a program that sets values or gets it to manipulate something. Hello World stop your curiosity but that doesn’t give you next steps.

I am building a program which can take current time as seed and generate random numbers. Also, i explored this awakeFromNib function which is kind of Page_Load or Init() routine. This will be exected automatically to provide your app a chance to initialize values.

Step 1: Create a new Project as “Cocoa Application” and name it as “RandomNumberGenerator”

Step 2: Create a new Class called MyController.m/h

Step 3: Open MainMenu.nib and make an interface to look like the following:

Continue reading »


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

 

 

Continue reading »