May 23

If you have a mac with Mac OS X 10.5 (Leopard) and try to create Ruby on Rails application. It’s very simple. But it comes with Rails 1.8.6, but you may need to get rails 2.0.2 for your applications with latest changes.

Uninstall old version:
$ sudo gem uninstall rails

Install a particular version:
$ sudo gem install -v 2.0.2 rails

Install the latest and greatest version:
$ sudo gem install rails


May 15

I am writing a simple program to navigate iCal events in a quicker way. Nice graphics too (working on it)!

Try my beta (all kinds of unregistered products as of now):whats-today-installer


Apr 27

To use the disk option provided with Apple Extreme Base Station, First format the disk and mount it on your mac. Goto terminal and do the following command:

$ touch .com.apple.timemachine.supported

This creates the file which Time machine recognizes as a disk which is usable for backup puroses. Then, you can proceed to do the backup yourself.


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


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

 

Hello World for a Mac Cocoa

 

Continue reading »