Jun 09

iPhone Development Forum

I am launching a new forum where developers can discuss their issues and concerns developing iPhone native application. It’s expected to have the NDA over when apple releases their iPhone OS 2.0 today. After that, I will be able to post my example applications i build before with Beta versions of iPhone SDK. This will also cover any news or articles interest for iPhone development.

This forum hosts sample codes and working copy of the project on few situations. You don’t need to reinvent the wheel at all.

URL: iPhone Development Forum


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 22

Google released its SDK for iPhone native application development. Please follow http://code.google.com/p/gdata-objectivec-client/ to see the Objective-C library and sample code to use it in your application. It supports the following:


Mar 21

I wanted to write a simple Console application in Cocoa. I followed the same old XCode approach of creating a project from the IDE. I started the project with Fundation Tool. Then the rest is to enter the following code into <the name you have given.m> which is the only class in that project. Its simple and good for making services and console applications. This also helps you to understand simple Number & Array manipulations with Objective-C style.

int main (int argc, const char * argv[]) {

    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

NSMutableArray *ar = [[NSMutableArray alloc] init];

NSNumber *n;

int i;

for (i=0; i<10; i++)

{

n  = [[NSNumber alloc] initWithInt:(i)];

[ar addObject:n];

}

for(i=0; i<10; i++)

{

NSNumber *newN = [ar objectAtIndex:i];

NSLog(@”Stored: %@”, newN);

}

NSLog(@”Number init %d\n”, i);

    // insert code here…

    NSLog(@”Hello, World from Muthu!”);

[ar release];

    [pool drain];

    return 0;

}

Download complete project: ArrayTest.zip