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.
- Open XCode and Create a new “Cocoa Touch Application”

- 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.

- Save and Close Interface Builder
- 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